X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fatooi.c;fp=sbr%2Fatooi.c;h=0000000000000000000000000000000000000000;hp=cb557b7d644957ae48bfa1584d1c90b1d527a252;hb=c490c51b3c0f8871b6953bd0c74551404f840a74;hpb=2968a0027b4c64664076f0d03a37f9744fe26782 diff --git a/sbr/atooi.c b/sbr/atooi.c deleted file mode 100644 index cb557b7..0000000 --- a/sbr/atooi.c +++ /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 - - -int -atooi(char *cp) -{ - register int i, base; - - i = 0; - base = 8; - while (*cp >= '0' && *cp <= '7') { - i *= base; - i += *cp++ - '0'; - } - - return i; -}