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:
18
kexcrt/strrchr.c
Normal file
18
kexcrt/strrchr.c
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
Reference in New Issue
Block a user