kolibrios-fun/programs/develop/metcc/trunk/libc/string/strchr.c

11 lines
157 B
C
Raw Normal View History

char* strchr(const char* string, int c)
{
while (*string!='\0')
{
if (*string==c)
return (char*)string;
string++;
}
return (char*)0;
}