strlen.c 123 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 #include <string.h> size_t strlen(const char * s) { const char * str = s; while (*str) str++; return str - s; }