#include #include #include size_t mystrlen(const char * text) { size_t len = 0; while(*text) { text++; len++; } return len; } int main(void) { int l = mystrlen("abc"); printf("Lenght of string: %i\n", l); }