Previous: AnsiStrIComp function To the Table of Content Next: AnsiStrLIComp function

- 4.61.2.7 -
Standard Units
Strings Unit
Strings Unit Procedures and Functions

AnsiStrLComp function

Targets: MS-DOS, OS/2, Win32


Strings Unit

Compares the first MaxLen bytes of two character sequences. It is case-sensitively.

Declaration:
function AnsiStrLComp(S1, S2: PWChar; MaxLen: DWORD): Longint;
function AnsiStrLComp(S1, S2: PChar; MaxLen: DWORD): Longint;
Remarks:
AnsiStrLComp compares S1 to S2, with case sensitivity. If S1 or S2 is longer than MaxLen bytes, AnsiStrLComp only compares the first MaxLen bytes. The return value is:
 Condition  Return Value 
S1 > S2> 0
S1 < S2< 0
S1 = S2= 0
Win32 target:
AnsiStrLComp uses the current Windows locale.


Previous: AnsiStrIComp function To the Table of Content Next: AnsiStrLIComp function
AnsiStrIComp function Table of Content AnsiStrLIComp function

- 4.61.2.7 -