]> diplodocus.org Git - nmh/blob - docs/historical/SRI-NOSC/subs.dir/atoi.c
Remove the #ifdef UK for the default scan format
[nmh] / docs / historical / SRI-NOSC / subs.dir / atoi.c
1 atoi(str)
2 {
3 register char *cp;
4 register int i;
5
6 i = 0;
7 cp = str;
8 while(*cp >= '0' && *cp <= '9') {
9 i =* 10;
10 i =+ *cp++ - '0';
11 }
12 return(i);
13 }