Skip to main content

parse_nul_terminated

Function parse_nul_terminated 

Source
unsafe fn parse_nul_terminated(s: &str) -> Result<Option<f64>, NotNumeric>
Expand description

Parse s as R’s RealFromString does, plus the "NA" token.

§Safety

The byte after s must be NUL (R’s CHAR() data is), because R_strtod reads a C string.