home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff218.lzh
/
EdLib
/
man
/
StrPos
< prev
next >
Wrap
Text File
|
1989-06-04
|
827b
|
36 lines
STRPOS(3) Library Functions STRPOS(3)
NAME
strpos - give the first position of a character withing a string
SYNOPSIS
#include <edlib.h>
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)