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; }