mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 01:08:15 +01:00
12 lines
167 B
C
12 lines
167 B
C
#include <string.h>
|
|
|
|
char * strchr(const char * s, int c) {
|
|
while (*s != NULL && *s != c) {
|
|
s++;
|
|
}
|
|
if (*s == c) {
|
|
return (char *)s;
|
|
}
|
|
return NULL;
|
|
}
|