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

19 lines
193 B
C
Executable File

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