blob: 681b2876e9e5fd480a104b6abaaa41dee5064d7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "config.h"
#include "compat.h"
#ifndef HAVE_STRCHRNUL
char *strchrnul(const char *s, int c)
{
while (*s && *((unsigned char *)s) != c)
++s;
return (char *)s;
}
#endif
|