1*53834Selan /* 2*53834Selan * Copyright (C) 1989 by Kenneth Almquist. All rights reserved. 3*53834Selan * This file is part of ash, which is distributed under the terms specified 4*53834Selan * by the Ash General Public License. See the file named LICENSE. 5*53834Selan */ 6*53834Selan 7*53834Selan #include <stdio.h> 8*53834Selan #include <errno.h> 9*53834Selan 10*53834Selan void 11*53834Selan #ifdef __STDC__ 12*53834Selan error(char *msg, ...) { 13*53834Selan #else 14*53834Selan error(msg) 15*53834Selan char *msg; 16*53834Selan { 17*53834Selan #endif 18*53834Selan fprintf(stderr, "test: %s\n", msg); 19*53834Selan exit(2); 20*53834Selan } 21