These functions are similar to
snprintf(s, n, “%.*g”, p, x)
specifies the maximum number of significant digits in either fixed-point or exponential notation format. If
l < n
, all output characters are stored in
with a null terminator at the end. Otherwise, output characters beyond the
character are discarded and no null character is appended at the end. If
is zero, nothing is written and
may be a null pointer.
is returned on success; otherwise the result is undefined.