size_t c_str_len_a(superhero const& hero) { #if 0 size_t n = hero.name.size() + 32; char buff[21]; n += sprintf(buff, "%d", hero.weight); n += sprintf(buff, "%d", hero.strength); n += sprintf(buff, "%d", hero.goodness); return n; #else return c_str_data_a(hero); #endif }
size_t c_str_len_a(void const volatile* pv) { char const* s = c_str_data_a(pv); return strlen(s); }
size_t c_str_len_a(double d) { return strlen(c_str_data_a(d)); }