Sign in Join
FPDoc Onlineexperiment

AnsiStrScan function

In unit sysutils

Find first occurrence of a character in a null-terminated string.

Declaration

pascal
function AnsiStrScan(Str: PAnsiChar; Chr: AnsiChar): PAnsiChar

Description

AnsiStrPos returns a pointer to the first occurrence of the character Chr in Str. If Chr does not occur in Str then Nil is returned.

Errors

An access violation may occur if Str points to invalid memory.

See also

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