X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fatooi.c;h=a0e4f74b9b8f6974c7a39015811dede789fe467d;hb=337338b404931f06f0db2119c9e145e8ca5a9860;hp=353a5c1566d5ea96356c5779d3056077636304b5;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/sbr/atooi.c b/sbr/atooi.c index 353a5c1..a0e4f74 100644 --- a/sbr/atooi.c +++ b/sbr/atooi.c @@ -1,9 +1,6 @@ - /* * 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. @@ -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; }