1
0
Files
irix-657m-src/eoe/cmd/sccs/lib/comobj/stats_ab.c
2022-09-29 17:59:04 +03:00

32 lines
828 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/comobj/stats_ab.c 6.3" */
#ident "$Revision: 1.5 $"
# include "../../hdr/defines.h"
void
stats_ab(pkt,statp)
register struct packet *pkt;
register struct stats *statp;
{
extern char *satoi();
char *getline();
register char *p;
void fmterr();
p = pkt->p_line;
if (getline(pkt) == NULL || *p++ != CTLCHAR || *p++ != STATS)
fmterr(pkt);
NONBLANK(p);
p = satoi(p,&statp->s_ins);
p = satoi(++p,&statp->s_del);
satoi(++p,&statp->s_unc);
}