projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split nmh dir into mmh dir (~/.mmh) and mail storage (~/Mail).
[mmh]
/
sbr
/
atooi.c
diff --git
a/sbr/atooi.c
b/sbr/atooi.c
index
ab58cb4
..
cb557b7
100644
(file)
--- a/
sbr/atooi.c
+++ b/
sbr/atooi.c
@@
-1,9
+1,10
@@
-
/*
/*
- * atooi.c -- octal version of atoi()
- *
- * $Id$
- */
+** 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>
#include <h/mh.h>
@@
-11,14
+12,14
@@
int
atooi(char *cp)
{
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;
}
}