strcomp function
Compare 2 null-terminated strings, case sensitive.
Declaration
function StrComp(str1: PAnsiChar; str2: PAnsiChar): SizeIntDescription
Compares the null-terminated strings S1 and S2.
The result is
- A negative
LongintwhenS1<S2. - 0 when
S1=S2. - A positive
LongintwhenS1>S2.
For an example, see StrLComp.
Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
