206
206
one if the user only wanted decimal places, but we force a leading
207
207
zero on them. Because the type is implicitly UNSIGNED, we do not
208
208
need to reserve a character for the sign. For all other cases,
210
210
instead to calculate the required size of the buffer.
212
212
int length= (int)(fixed_prec
213
213
? (uint32_t)(fixed_prec + ((fixed_prec == fixed_dec) ? 1 : 0) + 1)
217
217
return check_result(mask, E_DEC_OOM);