char* strchr(char* s,char c) { while(*s != '\0' && *s != c) { ++s; } return *s == c ?s:NULL; }
char * __cdecl strchr (const char * string,int ch) { while (*string && *string != (char)ch) string++; if (*string == (char)ch) return((char *)string); return(NULL); }