diff options
Diffstat (limited to '')
-rw-r--r-- | src/stdlib/atof.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/stdlib/atof.c b/src/stdlib/atof.c index c5a4182..a4546b1 100644 --- a/src/stdlib/atof.c +++ b/src/stdlib/atof.c @@ -23,10 +23,11 @@ * Convert a string to a floating-point value, * without checking for errors. * - * Note that, the behaviour is unspecified - * if the string contains anything else than - * digits, either a leading '-' (hyphen) - * or a leading plus, and at most one '.'. + * The string may being with an arbitrary number + * of whitespace characters. Convertion will end + * when a character is encountered that is not a + * decimal digit, and is not an absolutely leading + * '-' or '+', or the first '.'. * * @param string The string to convert. * @return The number encoded by the string. |