1 /* 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% 9 */ 10 11 #ifndef lint 12 static char copyright[] = 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 18 static char sccsid[] = "@(#)error.c 1.3 (Berkeley) 06/03/92"; 19 #endif /* not lint */ 20 21 22 #include <stdio.h> 23 #include <errno.h> 24 25 void 26 #ifdef __STDC__ 27 error(char *msg, ...) { 28 #else 29 error(msg) 30 char *msg; 31 { 32 #endif 33 fprintf(stderr, "test: %s\n", msg); 34 exit(2); 35 } 36