BSD 4_4 development
[unix-history] / usr / share / man / cat3 / index.0
INDEX(3) BSD Programmer's Manual INDEX(3)
N\bNA\bAM\bME\bE
i\bin\bnd\bde\bex\bx - locate character in string
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<s\bst\btr\bri\bin\bng\bg.\b.h\bh>\b>
_\bc_\bh_\ba_\br _\b*
i\bin\bnd\bde\bex\bx(_\bc_\bo_\bn_\bs_\bt _\bc_\bh_\ba_\br _\b*_\bs, _\bi_\bn_\bt _\bc);
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The i\bin\bnd\bde\bex\bx() function locates the first character matching _\bc (converted to
a _\bc_\bh_\ba_\br) in the null-terminated string _\bs.
R\bRE\bET\bTU\bUR\bRN\bN V\bVA\bAL\bLU\bUE\bES\bS
A pointer to the character is returned if it is found; otherwise NULL is
returned. If _\bc is '\0', i\bin\bnd\bde\bex\bx() locates the terminating '\0'.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
memchr(3), rindex(3), strchr(3), strcspn(3), strpbrk(3), strrchr(3),
strsep(3), strspn(3), strstr(3), strtok(3)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
A i\bin\bnd\bde\bex\bx() function appeared in Version 6 AT&T UNIX.
4.4BSD June 4, 1993 1