blob: d1be6df8a82cf7a4f25b48ad1e8d8bbd6cda5332 [file] [log] [blame] [edit]
#include <crm_internal.h>
/* Borrowed from gnulib's strchrnul.c under GLPv2+ */
#include <string.h>
/* Find the first occurrence of C in S or the final NUL byte. */
char *
strchrnul(const char *s, int c_in)
{
char c = c_in;
while (*s && (*s != c))
s++;
return (char *)s;
}