scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

strchr.c (143B)


      1 #include <string.h>
      2 #undef strchr
      3 
      4 char *
      5 strchr(const char *s, int c)
      6 {
      7 	while (*s && *s != c)
      8 		++s;
      9 	return (*s == c) ? (char *)s : NULL;
     10 }