repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding upstream version 4.00~pre54+dfsg.
[syslinux-debian/hramrach.git]
/
com32
/
lib
/
strnlen.c
blob
c22f8dce5dd150f26b80ee11d7df27dfab6eb774
1
/*
2
* strnlen()
3
*/
4
5
#include <string.h>
6
7
size_t
strnlen
(
const char
*
s
,
size_t
n
)
8
{
9
const char
*
ss
=
s
;
10
while
(
n
-- && *
ss
)
11
ss
++;
12
return
ss
-
s
;
13
}