pub unsafe extern "C" fn mp_rat_read_ustring(
r: mp_rat,
radix: mp_size,
str_: *const c_char,
end: *mut *mut c_char,
) -> mp_result
Expand description
Sets r
to the value represented by a zero-terminated string str
having
one of the following formats, each with an optional leading sign flag:
n : integer format, e.g. “123” n/d : ratio format, e.g., “-12/5” z.ffff : decimal format, e.g., “1.627”
It returns MP_UNDEF
if the effective denominator is zero. If end
is not
NULL then *end
is set to point to the first unconsumed character in the
string, after parsing.