2016-07-25 22:38:47 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
strchr
|
|
|
|
Searches a character in a string.
|
|
|
|
*/
|
|
|
|
const char *strchr(const char *str, int value)
|
|
|
|
{
|
2016-07-28 18:12:07 +02:00
|
|
|
while(*str && *str != value) str++;
|
2016-07-25 22:38:47 +02:00
|
|
|
return *str ? str : NULL;
|
|
|
|
}
|