apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r882260 - /apr/apr/trunk/include/apr_strings.h
Date Thu, 19 Nov 2009 19:34:52 GMT
Author: trawick
Date: Thu Nov 19 19:34:52 2009
New Revision: 882260

URL: http://svn.apache.org/viewvc?rev=882260&view=rev
Log:
document errno usage with apr_atoi64() and apr_itoa()

Modified:
    apr/apr/trunk/include/apr_strings.h

Modified: apr/apr/trunk/include/apr_strings.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_strings.h?rev=882260&r1=882259&r2=882260&view=diff
==============================================================================
--- apr/apr/trunk/include/apr_strings.h (original)
+++ apr/apr/trunk/include/apr_strings.h Thu Nov 19 19:34:52 2009
@@ -334,7 +334,7 @@
  *   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 @@
  * 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);
 



Mime
View raw message