Sign in Join
FPDoc Onlineexperiment

IndexChar0 function

In unit System

Return index of a character in null-terminated array of char.

Declaration

pascal
function IndexChar0(const buf; len: SizeInt; b: AnsiChar): SizeInt

Description

IndexChar0 returns the index of the character b in the null-terminated array Buf. At most len characters will be searched, or the null character if it is encountered first. If the character is not found, -1 is returned.

Errors

On error, -1 is returned.

See also

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