Compares the first MaxLen bytes of two null-terminated strings, case-sensitively.
function AnsiStrLComp(S1: PChar; S2: PChar; MaxLen: Cardinal): Integer;
int AnsiStrLComp(const char * S1, const char * S2, unsigned MaxLen);
SysUtils
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 compare operation is controlled by the current locale. The return value is:
Condition |
Return Value |
S1 > S2 |
> 0 |
S1 < S2 |
< 0 |
S1 = S2 (up to MaxLen characters) |
= 0 |
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|