SRI-NOSC/mh/subs.dir/atoi.c

Compare this file to the similar file:
Show the results in this format:

atoi(str)
{
	register char *cp;
	register int i;

	i = 0;
	cp = str;
	while(*cp >= '0' && *cp <= '9') {
		i =* 10;
		i =+ *cp++ - '0';
	}
	return(i);
}