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

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

AnsiStrComp function

Targets: MS-DOS, OS/2, Win32


Strings Unit

Compares null-terminated character strings case sensitively.

Declaration:
function AnsiStrComp(S1, S2: PWChar): Longint;
function AnsiStrComp(S1, S2: PChar): Longint;
Remarks:
AnsiStrComp compares S1 to S2 with case sensitivity. The return value is:
 Condition  Return Value 
S1 > S2> 0
S1 < S2< 0
S1 = S2= 0
Win32 target:
AnsiStrComp uses the current Windows locale.


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

- 4.61.2.5 -