X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fatooi.c;h=a0e4f74b9b8f6974c7a39015811dede789fe467d;hp=ab58cb46cb7693d531310335d2628efb4c0822e7;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/sbr/atooi.c b/sbr/atooi.c index ab58cb4..a0e4f74 100644 --- a/sbr/atooi.c +++ b/sbr/atooi.c @@ -1,8 +1,9 @@ - /* * 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. */ #include @@ -11,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; }