]> diplodocus.org Git - nmh/blob - docs/historical/mh-nov-1983/subs/atooi.c
Update XOAUTH2 documentation.
[nmh] / docs / historical / mh-nov-1983 / subs / atooi.c
1 atooi(cp)
2 register char *cp;
3 {
4 register int i, base;
5
6 /* base = 10; */
7 i = 0;
8 /* if(*cp == '0') */
9 base = 8;
10 while(*cp >= '0' && *cp <= '9') {
11 i *= base;
12 i += *cp++ - '0';
13 }
14 return(i);
15 }