X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fatooi.c;h=cb557b7d644957ae48bfa1584d1c90b1d527a252;hp=353a5c1566d5ea96356c5779d3056077636304b5;hb=2968a0027b4c64664076f0d03a37f9744fe26782;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/sbr/atooi.c b/sbr/atooi.c index 353a5c1..cb557b7 100644 --- a/sbr/atooi.c +++ b/sbr/atooi.c @@ -1,13 +1,10 @@ - /* - * atooi.c -- octal version of atoi() - * - * $Id$ - * - * 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. - */ +** 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 @@ -15,14 +12,14 @@ int atooi(char *cp) { - register int i, base; + register int i, base; - i = 0; - base = 8; - while (*cp >= '0' && *cp <= '7') { - i *= base; - i += *cp++ - '0'; - } + i = 0; + base = 8; + while (*cp >= '0' && *cp <= '7') { + i *= base; + i += *cp++ - '0'; + } - return i; + return i; }