diff options
author | Jeff Trawick <trawick@apache.org> | 2009-11-19 19:34:52 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2009-11-19 19:34:52 +0000 |
commit | 7851e80d9030f070f4227e1ced1f80556f0adb17 (patch) | |
tree | d12fa31c363d99f27b080f6d6b715ea9e99ef141 /include/apr_strings.h | |
parent | db755f1c4fc7a3e9ea0f548deaeaaa8edf05ab1e (diff) | |
download | apr-7851e80d9030f070f4227e1ced1f80556f0adb17.tar.gz |
document errno usage with apr_atoi64() and apr_strtoi64()
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@882260 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_strings.h')
-rw-r--r-- | include/apr_strings.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/apr_strings.h b/include/apr_strings.h index d43412cf8..6b71ff17e 100644 --- a/include/apr_strings.h +++ b/include/apr_strings.h @@ -334,7 +334,7 @@ APR_DECLARE(apr_status_t) apr_strtoff(apr_off_t *offset, const char *buf, * digits are prefixed with '0x', in which case it will be treated as * base 16. * @return The numeric value of the string. On overflow, errno is set - * to ERANGE. + * to ERANGE. On success, errno is set to 0. */ APR_DECLARE(apr_int64_t) apr_strtoi64(const char *buf, char **end, int base); @@ -342,7 +342,8 @@ APR_DECLARE(apr_int64_t) apr_strtoi64(const char *buf, char **end, int base); * parse a base-10 numeric string into a 64-bit numeric value. * Equivalent to apr_strtoi64(buf, (char**)NULL, 10). * @param buf The string to parse - * @return The numeric value of the string + * @return The numeric value of the string. On overflow, errno is set + * to ERANGE. On success, errno is set to 0. */ APR_DECLARE(apr_int64_t) apr_atoi64(const char *buf); |