Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
strchr.c
Go to the documentation of this file.
1
// Imported from musl Libc
2
3
#include <
string.h
>
4
5
char
*
__strchrnul
(
const
char
*,
int
);
6
7
char
*
strchr
(
const
char
* s,
int
c)
8
{
9
char
* r =
__strchrnul
(s, c);
10
return
*(
unsigned
char
*)r == (
unsigned
char
)c ? r : 0;
11
}
string.h
__strchrnul
char * __strchrnul(const char *, int)
Definition:
strchrnul.c:13
strchr
char * strchr(const char *s, int c)
Finds the first occurrence of c in the null-terminated byte string pointed to by s.
Definition:
strchr.c:7
src
string
strchr.c
Generated by
1.8.15