repo.or.cz
/
alt-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add strchrnul()
[alt-git.git]
/
compat
/
strchrnul.c
blob
51839feb6e97ce6ddb2657a6b66a3b437b04a163
1
#include
"../git-compat-util.h"
2
3
char
*
gitstrchrnul
(
const char
*
s
,
int
c
)
4
{
5
while
(*
s
&& *
s
!=
c
)
6
s
++;
7
return
(
char
*)
s
;
8
}