pub unsafe extern "C" fn mp_rat_to_string(
    r: mp_rat,
    radix: mp_size,
    str_: *mut c_char,
    limit: c_int
) -> mp_result
Expand description

Converts r to a zero-terminated string of the format "n/d" with n and d in the specified radix and writing no more than limit bytes to the given output buffer str. The output of the numerator includes a sign flag if r is negative. Requires MP_MIN_RADIX <= radix <= MP_MAX_RADIX.