FileNameNCmp (LabVIEW Manager Macro)

int32 FileNameNCmp(s1, s2, n);

Purpose

Lexically compares two filenames to determine whether one is less than, equal to, or greater than the other, limiting the comparison to n characters. This comparison uses the same case sensitivity as the file system, that is, case-insensitive on Mac OS X and Windows, case-sensitive on Linux.

Parameters

Name Type Description
s1 CStr Pointer to a C string.
s2 CStr Pointer to a C string.
n uInt32 Maximum number of characters you want to compare.

Return Value

<0, 0, or >0 if s1 is less than, equal to, or greater than s2, respectively. Returns <0 if s1 is an initial substring of s2.