mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 22:22:01 +00:00
initial check-in, version 0.5.0
This commit is contained in:
9
src/string/strrchr.c
Normal file
9
src/string/strrchr.c
Normal file
@ -0,0 +1,9 @@
|
||||
#include <string.h>
|
||||
|
||||
char *strrchr(const char *s, int c)
|
||||
{
|
||||
const char *p;
|
||||
c = (char)c;
|
||||
for (p=s+strlen(s); p>=s && *p!=c; p--);
|
||||
return p>=s ? (char *)p : 0;
|
||||
}
|
Reference in New Issue
Block a user