Function ion_c_sys::ion_decimal_from_string[][src]

pub unsafe extern "C" fn ion_decimal_from_string(
    value: *mut ION_DECIMAL,
    str_: *const c_char,
    context: *mut decContext
) -> iERR
Expand description

Converts the given string to its ION_DECIMAL representation.

@param value - a non-null pointer to the resulting decimal. @param str - a null-terminated string representing a decimal. Exponents (if any) may be indicated using either ‘d’ or ‘e’. @param context - the context to use for the conversion. If the decimal lies outside of the context’s limits, an error is raised. @return IERR_NUMERIC_OVERFLOW if the decimal lies outside of the context’s limits, otherwise IERR_OK.