nautilus_core::ffi::parsing

Function precision_from_cstr

source
#[no_mangle]
pub unsafe extern "C" fn precision_from_cstr(ptr: *const c_char) -> u8
Expand description

Return the decimal precision inferred from the given C string.

§Safety

  • Assumes ptr is a valid C string pointer.

§Panics

This function panics:

  • If ptr is null.