#include #include sz kssz(const char* str, sz max) { const char* end; for (end = str; *end!=0; ++end); return end - str; }