size_t sz; sz = sizeof(struct conf_value); if(val_len >= sizeof(v->strval)) sz += (val_len - sizeof(v->strval) + 1);