source:
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/string/strnlen.c@
367
Last change on this file since 367 was 337, checked in by , 6 years ago | |
---|---|
|
|
File size: 120 bytes |
Rev | Line | |
---|---|---|
[337] | 1 | #include <string.h> |
2 | ||
3 | size_t strnlen(const char *s, size_t n) | |
4 | { | |
5 | const char *p = memchr(s, 0, n); | |
6 | return p ? p-s : n; | |
7 | } |
Note:
See TracBrowser
for help on using the repository browser.