PatchworkOS
Loading...
Searching...
No Matches
strchr.c
Go to the documentation of this file.
1#include <string.h>
2
3char* strchr(const char* s, int c)
4{
5 do
6 {
7 if (*s == (char)c)
8 {
9 return (char*)s;
10 }
11 } while (*s++);
12
13 return NULL;
14}
#define NULL
Pointer error value.
Definition NULL.h:23
char * strchr(const char *s, int c)
Definition strchr.c:3