projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed unneeded sbr code.
[mmh]
/
sbr
/
atooi.c
diff --git
a/sbr/atooi.c
b/sbr/atooi.c
index
d62de17
..
a0e4f74
100644
(file)
--- a/
sbr/atooi.c
+++ b/
sbr/atooi.c
@@
-1,4
+1,3
@@
-
/*
* atooi.c -- octal version of atoi()
*
/*
* atooi.c -- octal version of atoi()
*
@@
-13,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;
}
}