XINU
lib
strnlen.c
Go to the documentation of this file.
1
14
int
strnlen
(
const
char
*s,
unsigned
int
len)
15
{
16
int
n;
17
18
n = 0;
19
while
(*s++ && n < len)
20
n++;
21
22
return
(n);
23
}
strnlen
int strnlen(const char *s, unsigned int len)
NULL終端された文字列の長さを返す。NULL終端は長さに含まない。
Definition:
strnlen.c:14
Generated by
1.8.13