rstod()

Converts a string to a double.

Syntax

mint rstod(char *str, double *val);
  1. str is a pointer to a null-terminated string.
  2. val is a pointer to a double value that holds the converted value.

Returns

Table 1. Return codes
Code Description
0 The conversion was successful.
<0 The conversion failed.