mirror of
https://github.com/Hizenberg469/Compression-Algorithm.git
synced 2026-04-20 02:12:26 +03:00
16 lines
248 B
C
16 lines
248 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include "errhand.h"
|
|
|
|
|
|
void fatal_error(char* fmt, ...) {
|
|
|
|
va_list argptr;
|
|
va_start(argptr, fmt);
|
|
printf("Fatal error: ");
|
|
vprintf(fmt, argptr);
|
|
va_end(argptr);
|
|
exit(EXIT_FAILURE);
|
|
|
|
} |