ctpv/error.c

17 lines
275 B
C
Raw Normal View History

2022-05-22 09:55:04 +02:00
#include <stdio.h>
#include "error.h"
#include "utils.h"
void print_error(char const *error_msg)
{
fprintf(stderr, "%s: %s\n", program, error_msg);
}
void print_errorf(char const *format, ...)
{
char s[1024];
FORMATTED_STRING(s, format);
print_error(s);
}