home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
109.lha
/
PD_C
/
lib
/
strpbrk.c
< prev
next >
Wrap
Text File
|
1986-11-20
|
576b
|
22 lines
/*
* strpbrk - find first occurrence of any char from breakat in s
*/
#define NULL 0
char * /* found char, or NULL if none */
strpbrk(s, breakat)
CONST char *s;
CONST char *breakat;
{
register CONST char *sscan;
register CONST char *bscan;
for (sscan = s; *sscan != '\0'; sscan++) {
for (bscan = breakat; *bscan != '\0';) /* ++ moved down. */
if (*sscan == *bscan++)
return(sscan);
}
return(NULL);
}