Replaced atooi() with strtoul(..., 8). That's part of C89 and thus okay for us.
[mmh] / sbr / atooi.c
diff --git a/sbr/atooi.c b/sbr/atooi.c
deleted file mode 100644 (file)
index cb557b7..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
-** atooi.c -- octal version of atoi()
-**
-** This code is Copyright (c) 2002, by the authors of nmh.  See the
-** COPYRIGHT file in the root directory of the nmh distribution for
-** complete copyright information.
-*/
-
-#include <h/mh.h>
-
-
-int
-atooi(char *cp)
-{
-       register int i, base;
-
-       i = 0;
-       base = 8;
-       while (*cp >= '0' && *cp <= '7') {
-               i *= base;
-               i += *cp++ - '0';
-       }
-
-       return i;
-}