dhodovsk / source-git / pacemaker

Forked from source-git/pacemaker 3 years ago
Clone
Blob Blame History Raw
#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;
}