blob: 6a573130e727eb81be9ee18670eabb658e9d6efb [file] [log] [blame]
/*
* strchr.c
*/
#include <string.h>
char *strchr(const char *s, int c)
{
while (*s != (char)c) {
if (!*s)
return NULL;
s++;
}
return (char *)s;
}