aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-10 19:36:45 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-10 19:36:45 +0200
commit1e4497515f13cf892de74cd8070d301c77e0390d (patch)
tree7bda231789a3ee152776429dd28ded212892d2ea /include
parentadd atof (diff)
downloadslibc-1e4497515f13cf892de74cd8070d301c77e0390d.tar.gz
slibc-1e4497515f13cf892de74cd8070d301c77e0390d.tar.bz2
slibc-1e4497515f13cf892de74cd8070d301c77e0390d.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h36
1 files changed, 20 insertions, 16 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 1244060..8d65597 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -137,10 +137,11 @@ char* relpath(const char*, const char*)
* 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.
@@ -152,10 +153,11 @@ double atof(const char*)
* Convert a string to an integer,
* without checking for errors.
*
- * Note that, the behaviour is unspecified
- * if the string contains anything else than
- * digits and either a leading '-' (hyphen)
- * or a leading plus.
+ * 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 '+'.
*
* @param string The string to convert.
* @return The integer encoded by the string.
@@ -167,10 +169,11 @@ int atoi(const char*)
* Convert a string to an integer,
* without checking for errors.
*
- * Note that, the behaviour is unspecified
- * if the string contains anything else than
- * digits and either a leading '-' (hyphen)
- * or a leading plus.
+ * 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 '+'.
*
* @param string The string to convert.
* @return The integer encoded by the string.
@@ -182,10 +185,11 @@ long int atol(const char*)
* Convert a string to an integer,
* without checking for errors.
*
- * Note that, the behaviour is unspecified
- * if the string contains anything else than
- * digits and either a leading '-' (hyphen)
- * or a leading plus.
+ * 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 '+'.
*
* @param string The string to convert.
* @return The integer encoded by the string.