mirror of
https://github.com/Hizenberg469/Compression-Algorithm.git
synced 2026-04-20 02:12:26 +03:00
clib
This commit is contained in:
16
clib/errhand.c
Normal file
16
clib/errhand.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user