Page MenuHomeClusterLabs Projects

strchrnul.c
No OneTemporary

strchrnul.c

#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;
}

File Metadata

Mime Type
text/x-c
Expires
Tue, Oct 29, 9:14 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
905076
Default Alt Text
strchrnul.c (297 B)

Event Timeline