xref: /csrg-svn/bin/test/error.c (revision 53848)
153834Selan /*
2*53848Selan  * Copyright (c) 1988 The Regents of the University of California.
3*53848Selan  * All rights reserved.
4*53848Selan  *
5*53848Selan  * This code is derived from software contributed to Berkeley by
6*53848Selan  * Kenneth Almquist.
7*53848Selan  *
8*53848Selan  * %sccs.include.redist.c%
953834Selan  */
1053834Selan 
11*53848Selan #ifndef lint
12*53848Selan char copyright[] =
13*53848Selan "@(#) Copyright (c) 1988 The Regents of the University of California.\n\
14*53848Selan  All rights reserved.\n";
15*53848Selan #endif /* not lint */
16*53848Selan 
17*53848Selan #ifndef lint
18*53848Selan static char sccsid[] = "@(#)error.c	1.2 (Berkeley) 06/03/92";
19*53848Selan #endif /* not lint */
20*53848Selan 
21*53848Selan 
2253834Selan #include <stdio.h>
2353834Selan #include <errno.h>
2453834Selan 
2553834Selan void
2653834Selan #ifdef __STDC__
2753834Selan error(char *msg, ...) {
2853834Selan #else
2953834Selan error(msg)
3053834Selan       char *msg;
3153834Selan       {
3253834Selan #endif
3353834Selan       fprintf(stderr, "test: %s\n", msg);
3453834Selan       exit(2);
3553834Selan }
36