mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-19 07:21:20 +03:00
import KernelEx-4.0-RC1
This commit is contained in:
16
kexcrt/strchr.c
Normal file
16
kexcrt/strchr.c
Normal file
@ -0,0 +1,16 @@
|
||||
/*
|
||||
* strchr.c
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
char *strchr(const char *s, int c)
|
||||
{
|
||||
while (*s != (char)c) {
|
||||
if (!*s)
|
||||
return NULL;
|
||||
s++;
|
||||
}
|
||||
|
||||
return (char *)s;
|
||||
}
|
Reference in New Issue
Block a user