RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrScan Function

Returns a pointer to first occurrence of a specified character in a string.

Pascal
function StrScan(const Str: PChar; Chr: Char): PChar;
C++
const char * StrScan(const const char * Str, Char Chr);

SysUtils

StrScan returns a pointer to the first occurrence of Chr in Str. If Chr does not occur in Str, StrScan returns nil (Delphi) or NULL (C++). The null terminator is considered to be part of the string.

Note: If the source string contains international characters, use AnsiStrScan instead.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!