相关代码 |
|
/*LINTLIBRARY*/ /* * Return the ptr in sp at which the character c appears; * NULL if not found */ /* static char *sccs_id = "@(#)strchr.c 1.2 12/8/89 ESI, ATT"; */ #define NULL 0 char * strchr(sp, c) register char *sp, c; { do { if(*sp == c) return(sp); } while(*sp++); return(NULL); }