changes designed so that ESIS and ARP may use routing table
[unix-history] / usr / src / usr.sbin / accton / accton.c
CommitLineData
0186c796
KB
1/*
2 * Copyright (c) 1988 Regents of the University of California.
3 * All rights reserved.
4 *
32ce521f 5 * %sccs.include.redist.c%
0186c796
KB
6 */
7
8#ifndef lint
9char copyright[] =
10"@(#) Copyright (c) 1988 Regents of the University of California.\n\
11 All rights reserved.\n";
12#endif /* not lint */
13
14#ifndef lint
32ce521f 15static char sccsid[] = "@(#)accton.c 4.3 (Berkeley) %G%";
0186c796
KB
16#endif /* not lint */
17
18#include <stdio.h>
19
546c12a5 20main(argc, argv)
0186c796
KB
21 int argc;
22 char **argv;
546c12a5 23{
0186c796
KB
24 if (argc > 2) {
25 fputs("usage: accton [file]\n", stderr);
26 exit(1);
27 }
28 if (acct(argc == 2 ? argv[1] : (char *)NULL)) {
546c12a5
BJ
29 perror("accton");
30 exit(1);
31 }
32 exit(0);
33}