matter.c

Cross-platform minimalist libc
git clone git://git.finwo.net/lib/matter.c
Log | Files | Refs | README | LICENSE

strlen.c (217B)


      1 #include <string.h>
      2 
      3 #ifdef __cplusplus
      4 extern "C" {
      5 #endif
      6 
      7 static unsigned int strlen(const char *s) {
      8 	unsigned int len = 0;
      9 	while (s[len] != '\0') len++;
     10 	return len;
     11 }
     12 
     13 #ifdef __cplusplus
     14 } // extern "C"
     15 #endif