fatal error */ VARARGS1*/
| 2032 | /* fatal error */ |
| 2033 | /*VARARGS1*/ |
| 2034 | void consoletty_error |
| 2035 | VA_DECL(const char *, s) |
| 2036 | { |
| 2037 | char buf[BUFSZ]; |
| 2038 | VA_START(s); |
| 2039 | VA_INIT(s, const char *); |
| 2040 | /* error() may get called before tty is initialized */ |
| 2041 | if (iflags.window_inited) |
| 2042 | end_screen(); |
| 2043 | buf[0] = '\n'; |
| 2044 | (void) vsnprintf(&buf[1], sizeof buf - 1, s, VA_ARGS); |
| 2045 | msmsg(buf); |
| 2046 | really_move_cursor(); |
| 2047 | VA_END(); |
| 2048 | exit(EXIT_FAILURE); |
| 2049 | } |
| 2050 | #endif |
| 2051 | |
| 2052 | void |
nothing calls this directly
no test coverage detected