]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fold ap_strtol fully into API
authorJim Jagielski <jim@apache.org>
Tue, 18 Jun 2002 01:19:46 +0000 (01:19 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 18 Jun 2002 01:19:46 +0000 (01:19 +0000)
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95748 13f79535-47bb-0310-9956-ffa450edef68

src/ap/ap_strtol.c
src/include/ap.h

index 1a2e4e9f6a64fe982d20f50614d9f3136f149697..39b5b819ecbf06530623a204e77be36032e25629 100644 (file)
@@ -88,7 +88,7 @@
  * SUCH DAMAGE.
  */
 
-
+#include "httpd.h"
 #include <limits.h>
 #include <errno.h>
 #include <stdlib.h>
  * Assumes that the upper and lower case
  * alphabets and digits are each contiguous.
  */
-long
-ap_strtol(nptr, endptr, base)
-       const char *nptr;
-       char **endptr;
-       int base;
+
+API_EXPORT(long) ap_strtol(const char *nptr, char **endptr, int base)
 {
        const char *s;
        unsigned long acc;
index 6e2e488c5aed14d283e19ae14f0fe8d49f0d8514..9f21f24d8bf1e4dbd0811c0cd4003709e9b9206d 100644 (file)
@@ -74,6 +74,8 @@ int ap_slack(int, int);
 int ap_execle(const char *, const char *, ...);
 int ap_execve(const char *, char * const argv[], char * const envp[]);
 API_EXPORT(int) ap_getpass(const char *prompt, char *pwbuf, size_t bufsiz);
+API_EXPORT(long) ap_strtol(const char *nptr, char **endptr, int base);
+
 
 /* small utility macros to make things easier to read */