Skip to content

strcomp

Compare 2 null-terminated strings, case sensitive.

Declaration

Source position: syspchh.inc line 24

  function strcomp(str1: pchar; str2: pchar) : SizeInt;
  function strcomp(str1: pwidechar; str2: pwidechar) : SizeInt;

Description

Compares the null-terminated strings S1 and S2. The result is

A negative Longint when S1S2.

For an example, see StrLComp .

Errors

None.

See also

Name Description
StrIComp Compare 2 null-terminated strings, case insensitive.
StrLComp Compare limited number of characters of 2 null-terminated strings
StrLIComp Compare limited number of characters in 2 null-terminated strings, ignoring case.