forked from Lephenixnoir/gint
12 lines
186 B
C
12 lines
186 B
C
#include <string.h>
|
|
|
|
/*
|
|
strchr
|
|
Searches a character in a string.
|
|
*/
|
|
const char *strchr(const char *str, int value)
|
|
{
|
|
while(*str && *str != value) *str++;
|
|
return *str ? str : NULL;
|
|
}
|