iconv: add euro symbol to GBK as single byte 0x80
[musl.git] / src / string / strnlen.c
blob6442eb793fbeeda51a3f19b9e1c1269a030444e9
1 #include <string.h>
3 size_t strnlen(const char *s, size_t n)
5 const char *p = memchr(s, 0, n);
6 return p ? p-s : n;