git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
msvcrt
/
string
/
strnlen.c
1
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
#include <msvcrt/string.h>
3
4
size_t
5
strnlen(const char *str, size_t count)
6
{
7
const char *s;
8
9
if (str == 0)
10
return 0;
11
for (s = str; *s && count; ++s, count--);
12
return s-str;
13
}
14