1 2 3 4 5 6 7 8
#include <string.h> size_t strlen(const char *s) { const char *d = s; for (; *s; s++) ; return s - d; }