Sign in Join
FPDoc Onlineexperiment

AnsiStrRScan function

In unit sysutils

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

Declaration

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

Description

AnsiStrPos returns a pointer to the last 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.