scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

strlen.c (126B)


      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 		;
     11 	return t - s;
     12 }