libc

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

strlen.c (132B)


      1 #include <string.h>
      2 
      3 size_t strlen(const char * str) {
      4   size_t len = 0;
      5   while(str[len] != '\0') {
      6     len++;
      7   }
      8   return len;
      9 }