1 2 3 4 5 6 7 8
#include "../include/string.h" unsigned long strlen(const char *s) { const char *tmp = s; for (; *tmp++;) ; return (tmp - s) - 1; }