summaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-14 06:36:48 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-14 06:36:48 +0000
commit557676bdf528741f188f6af0e7bb5f25e29e7d3e (patch)
tree69a82c960d2d17fa6da7cafa88a607a9f0aa9e83 /include/stdlib.h
parentc3a27f5095a50bef9e56f19eeed1176319e189e2 (diff)
Work in progress -- cleanups.
-Erik
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 27c0a5885..622d5ce38 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -57,6 +57,8 @@ extern int qsort __P ((char *base, int num, int size, int (*cmp)()));
extern char * gcvt __P ((float number, size_t ndigit, char * buf));
#define atof(x) strtod((x),(char**)0)
+#define atoi(x) (int)strtol((x),(char**)0,10)
+#define atol(x) strtol((x),(char**)0,10)
/* Returned by `div'. */
typedef struct