1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-18 23:11:19 +03:00
Files
KernelEx/kexcrt/strchr.c
2018-11-03 16:21:13 +03:00

17 lines
162 B
C
Executable File

/*
* strchr.c
*/
#include <string.h>
char *strchr(const char *s, int c)
{
while (*s != (char)c) {
if (!*s)
return NULL;
s++;
}
return (char *)s;
}