prettyness police
[unix-history] / usr / src / bin / test / error.c
CommitLineData
c96e5859 1/*
2ccbd811
EA
2 * Copyright (c) 1988 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * %sccs.include.redist.c%
c96e5859
EA
9 */
10
2ccbd811 11#ifndef lint
4c71cb3d 12static char copyright[] =
2ccbd811
EA
13"@(#) Copyright (c) 1988 The Regents of the University of California.\n\
14 All rights reserved.\n";
15#endif /* not lint */
16
17#ifndef lint
4c71cb3d 18static char sccsid[] = "@(#)error.c 1.3 (Berkeley) %G%";
2ccbd811
EA
19#endif /* not lint */
20
21
c96e5859
EA
22#include <stdio.h>
23#include <errno.h>
24
25void
26#ifdef __STDC__
27error(char *msg, ...) {
28#else
29error(msg)
30 char *msg;
31 {
32#endif
33 fprintf(stderr, "test: %s\n", msg);
34 exit(2);
35}