操作系统SunOS 4.1.3版本的源码
源代码在线查看: strpbrk.c
#if !defined(lint) && defined(SCCSIDS) static char sccsid[] = "@(#)strpbrk.c 1.1 92/07/30 SMI"; /* from S5R2 1.2 */ #endif /*LINTLIBRARY*/ /* * Return ptr to first occurance of any character from `brkset' * in the character string `string'; NULL if none exists. */ #define NULL (char *) 0 char * strpbrk(string, brkset) register char *string, *brkset; { register char *p; do { for(p=brkset; *p != '\0' && *p != *string; ++p) ; if(*p != '\0') return(string); } while(*string++); return(NULL); }