RAD Studio VCL Reference
|
Compares null-terminated character strings.
function AnsiStrComp(S1: PAnsiChar; S2: PAnsiChar): Integer; function AnsiStrComp(S1: PWideChar; S2: PWideChar): Integer;
int AnsiStrComp(PAnsiChar S1, PAnsiChar S2); int AnsiStrComp(PWideChar S1, PWideChar S2);
AnsiStrComp compares S1 to S2, with case sensitivity. The compare operation is controlled by the current locale. The return value is:
Condition |
Return Value |
S1 > S2 |
> 0 |
S1 < S2 |
< 0 |
S1 = S2 |
= 0 |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|