one_strtod

Starlink compliant wrapper around the standard strtod function

Description:

The strtod() function converts a string to a double precision number. This function is the same except that there is not endptr argument and it will set status to bad on failure and use inherited status.

Invocation

dval = one_strtod( const char instr, int status );

Arguments

instr = const char (Given)
Input string to parse. Must be nul-terminated standard C string suitable for the strtod() library call.
status = int (Given and Returned)
Inherited status. Will be set to ONE__CNVERR if the string did not contain a number.

Returned Value

double dval
Converted double precision value. VAL__BADD on error.

Notes:

See Also