pub unsafe extern "C" fn mp_int_to_string(
z: mp_int,
radix: mp_size,
str_: *mut c_char,
limit: c_int,
) -> mp_result
Expand description
Converts z
to a zero-terminated string of characters in the specified
radix
, writing at most limit
characters to str
including the
terminating NUL value. A leading -
is used to indicate a negative value.
Returns MP_TRUNC
if limit
was to small to write all of z
.
Requires MP_MIN_RADIX <= radix <= MP_MAX_RADIX
.