#include "string.h" extern "C" { size_t strlen(const char* str) { size_t len = 0; while (*(str++)) ++len; return len; } }