2016-05-19 14:15:22 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
2006-09-07 16:14:53 +02:00
|
|
|
char* strchr(const char* string, int c)
|
|
|
|
{
|
2016-05-19 14:15:22 +02:00
|
|
|
do {
|
|
|
|
if (*string == (char)c)
|
2006-09-07 16:14:53 +02:00
|
|
|
return (char*)string;
|
2016-05-19 14:15:22 +02:00
|
|
|
} while (*string++);
|
|
|
|
|
|
|
|
return NULL;
|
2006-09-07 16:14:53 +02:00
|
|
|
}
|