std qualified strlen in int width = (int)std::strlen(prefix) + (int)std::strlen(body);
to comply with C++ standard.