repo.or.cz
/
haiku.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vfs: check userland buffers before reading them.
[haiku.git]
/
src
/
system
/
libroot
/
posix
/
string
/
strchrnul.c
blob
a83745c13e66ff040facb87d8d989fcf6195a7aa
1
/*
2
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3
* Distributed under the terms of the MIT License.
4
*/
5
6
7
#include <sys/types.h>
8
#include <string.h>
9
10
11
char
*
12
strchrnul
(
const char
*
string
,
int
c
)
13
{
14
while
(
string
[
0
] != (
char
)
c
&&
string
[
0
])
15
string
++;
16
17
return
(
char
*)
string
;
18
}