Next: StrCopy
Up: Functions and procedures.
Previous: StrCat
Function StrComp (S1,S2 : PChar) : Longint;
Compares the null-terminated strings S1 and S2.
The result is
- A negative Longint when S1<S2.
- 0 when S1=S2.
- A positive Longint when S1>S2.
None.
StrLComp, StrIComp, StrLIComp
For an example, see StrLComp.
Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998