#[no_mangle]
pub unsafe extern "C" fn utoa(
u: u64,
s: *mut CChar,
s_len: usize,
radix: u8
) -> i32
Expand description
Formats the given value u
, with the given radix, into the given buffer (of the given length).
No prefixes (like 0x or 0b) are generated. Only radix values in the range 2..=16 are supported. Negative numbers are not supported.
Returns the number of bytes written on success (not including the null), or -1 if the buffer wasn’t large enough.