gfxboot: parse TIMEOUT keyword
[syslinux.git] / com32 / lib / strnlen.c
blobc22f8dce5dd150f26b80ee11d7df27dfab6eb774
1 /*
2 * strnlen()
3 */
5 #include <string.h>
7 size_t strnlen(const char *s, size_t n)
9 const char *ss = s;
10 while (n-- && *ss)
11 ss++;
12 return ss - s;