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