26 lines
609 B
C
26 lines
609 B
C
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
|
|
/* Copyright (c) 1988 AT&T */
|
|
/* All Rights Reserved */
|
|
|
|
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
|
|
/* UNIX System Laboratories, Inc. */
|
|
/* The copyright notice above does not evidence any */
|
|
/* actual or intended publication of such source code. */
|
|
|
|
#ident "@(#)sccs:lib/mpwlib/satoi.c 6.4"
|
|
# 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);
|
|
}
|