#include <sys/types.h> #include <string.h> int strlen(const char * string) { int i = 0; while (1) { if (string[i] == '\0') return i; i++; } return 0; }