make c_vasprintf()/c_asprintf() return the number of characters written