home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
STRPBRK.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
494b
|
23 lines
/* from Henry Spencer's stringlib */
#include <string.h>
/*
* strpbrk - find first occurrence of any char from breakat in s
*/
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((char *)sscan);
}
return(NULL);
}