[][src]Function lexical_core::get_infinity_string_ffi

#[no_mangle]
pub unsafe extern "C" fn get_infinity_string_ffi(
    ptr: *mut *const u8,
    size: *mut usize
) -> i32

Get the long representation of an Infinity literal as a pointer and size.

Returns 0 on success, -1 on error. This string is not null-terminated.

  • ptr - Out-parameter for a pointer to the string.
  • size - Out-parameter for the size of the string.

Safety

Only use this in C-FFI code, otherwise, you use get_infinity_string.