scc

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

strlen.c (139B)


      1 #include <string.h>
      2 #undef strlen
      3 
      4 size_t
      5 strlen(const char *s)
      6 {
      7 	const char *t;
      8 
      9 	for (t = s; *t; ++t)
     10 		/* nothing */;
     11 	return t - s;
     12 }