Skip to main content

StringToLong

Function StringToLong 

Source
pub unsafe extern "C" fn StringToLong(
    str_: *mut c_char,
    l: *mut c_long,
) -> c_int
Expand description

Uses strtol to convert a string to a base-10 long, 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.