#include "string.h" int strlen(char *str) { int retn = 0; while (*str++ != 0) retn++; return retn; }