cfengine  3.15.4
About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.
  Fossies Dox: cfengine-3.15.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

strchrnul.c
Go to the documentation of this file.
1 #ifdef HAVE_CONFIG_H
2 # include <config.h>
3 #endif
4 
5 #include <string.h> /* strlen,strchr */
6 #include <stddef.h> /* size_t */
7 
8 
9 char *strchrnul(const char *s, int c)
10 {
11  char *p = strchr(s, c);
12 
13  if (p == NULL)
14  {
15  return (char *)(s + strlen(s));
16  }
17  else
18  {
19  return p;
20  }
21 }
#define NULL
Definition: getopt1.c:56
char * strchrnul(const char *s, int c)
Definition: strchrnul.c:9