STRPOS(3) Library Functions STRPOS(3) NAME strpos - give the first position of a character withing a string SYNOPSIS #include int strpos(string,key) char *string; char key; DESCRIPTION Strpos searches the null terminated string 'string' for the first occurance of the character 'key'. The position of this character is returned. The terminating null character is considered to be part of the string for the purposes of this search. Thus, using strpos to find the null will give the same result as a strlen(3). Some implementations of C use a variant called scnstr. DIAGNOSTICS Strpos returns a -1 if the character is not found in the string. AUTHOR Edwin Hoogerbeets 01/08/88 SEE ALSO strrpos(3)