repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix mips setjmp/longjmp fpu state on r6, related issues
[musl.git]
/
src
/
string
/
strchr.c
blob
3cbc828bebf705ae570e1bfd0c2b518f929c054c
1
#include <string.h>
2
3
char
*
strchr
(
const char
*
s
,
int
c
)
4
{
5
char
*
r
=
__strchrnul
(
s
,
c
);
6
return
*(
unsigned char
*)
r
== (
unsigned char
)
c
?
r
:
0
;
7
}