mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53:07 +01:00
17 lines
275 B
C
17 lines
275 B
C
#include <stdio.h>
|
|
|
|
#include "error.h"
|
|
#include "utils.h"
|
|
|
|
void print_error(const char *error_msg)
|
|
{
|
|
fprintf(stderr, "%s: %s\n", program, error_msg);
|
|
}
|
|
|
|
void print_errorf(const char *format, ...)
|
|
{
|
|
char s[1024];
|
|
FORMATTED_STRING(s, format);
|
|
print_error(s);
|
|
}
|