SysIII/usr/src/lib/libPW/satoi.c

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

static char Sccsid[]="@(#)satoi	3.1";
# include	"sys/types.h"
# include	"macros.h"

char *satoi(p,ip)
register char *p;
register int *ip;
{
	register int sum;

	sum = 0;
	while (numeric(*p))
		sum = sum * 10 + (*p++ - '0');
	*ip = sum;
	return(p);
}