home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
LIB
/
unix.zoo
/
strpbrk.c
< prev
next >
Wrap
Text File
|
2009-11-06
|
2KB
|
50 lines
/***************************************************************************/
/* */
/* strpbrk() : Unix library (OS9/68000) */
/* ======== */
/* */
/* Author: K. Schmitt */
/* Compiler: Microware C Vers. 3.0 */
/* OS: OS9/68000 Vers. 2.2 */
/* */
/* Edition History */
/* =============== */
/* */
/* Ed. 0.00 Date 11/15/88 */
/* First version */
/* */
/***************************************************************************/
/* */
/* Description */
/* */
/*
char *strpbrk (s1, s2)
char *s1, *s2;
Strpbrk returns a pointer to the first occurrence in string
s1 of any character from string s2, or NULL if no character
from s2 exists in s1.
*/
char *strpbrk (s1, s2)
register char *s1, *s2;
{
register char *p;
while (*s1)
{
p = s2;
while (*p)
{
if (*p++ == *s1) return (s1);
}
s1++;
}
return ((char *) 0);
} /* end of strpbrk */