CPStrCmp (LabVIEW Manager Function)

int32 CPStrCmp(s1p, s2p);

Purpose

Lexically compares two concatenated lists of Pascal strings to determine whether one is less than, equal to, or greater than the other. This comparison is case sensitive. The function compares the lists as if they were one string.

Parameters

Name Type Description
s1p CPStrPtr Pointer to a concatenated list of Pascal strings.
s2p CPStrPtr Pointer to a concatenated list of Pascal strings.

Return Value

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