xref: /csrg-svn/bin/test/error.c (revision 53857)
153834Selan /*
253848Selan  * Copyright (c) 1988 The Regents of the University of California.
353848Selan  * All rights reserved.
453848Selan  *
553848Selan  * This code is derived from software contributed to Berkeley by
653848Selan  * Kenneth Almquist.
753848Selan  *
853848Selan  * %sccs.include.redist.c%
953834Selan  */
1053834Selan 
1153848Selan #ifndef lint
12*53857Selan static char copyright[] =
1353848Selan "@(#) Copyright (c) 1988 The Regents of the University of California.\n\
1453848Selan  All rights reserved.\n";
1553848Selan #endif /* not lint */
1653848Selan 
1753848Selan #ifndef lint
18*53857Selan static char sccsid[] = "@(#)error.c	1.3 (Berkeley) 06/03/92";
1953848Selan #endif /* not lint */
2053848Selan 
2153848Selan 
2253834Selan #include <stdio.h>
2353834Selan #include <errno.h>
2453834Selan 
2553834Selan void
2653834Selan #ifdef __STDC__
error(char * msg,...)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