Sign in Join
FPDoc Onlineexperiment

AnsiStrLComp function

In unit sysutils

Compare a limited number of characters of 2 strings.

Declaration

pascal
function AnsiStrLComp(S1: PAnsiChar; S2: PAnsiChar; MaxLen: SizeUInt)
: Integer

Description

AnsiStrLComp functions the same as AnsiStrComp, but compares at most MaxLen characters. If the first MaxLen characters in both strings are the same, then zero is returned.

Note that this function processes embedded null characters, treating them as a normal character.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.