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