Skip to main content

StringToDouble

Function StringToDouble 

Source
pub unsafe extern "C" fn StringToDouble(
    str_: *mut c_char,
    d: *mut f64,
) -> c_int
Expand description

Uses strtod to convert a string to a double, but also does error checking. If any part of the string is not converted, the function does not make the assignment and returns TRUE. Otherwise, returns FALSE.