1 /* 2 * reimplementation of Daniel Bernstein's byte library. 3 * placed in the public domain by Uwe Ohse, uwe@ohse.de. 4 */ 5 #include "str.h" 6 7 unsigned int str_len(const char * s)8str_len(const char *s) 9 { 10 unsigned int i=0; 11 for (;;) { 12 if (!s[i]) return i; 13 i++; 14 15 if (!s[i]) return i; 16 i++; 17 18 if (!s[i]) return i; 19 i++; 20 21 if (!s[i]) return i; 22 i++; 23 } 24 } 25