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"
2022-06-02 01:37:43 +02:00
void print_error(const char *error_msg)
2022-05-22 09:55:04 +02:00
{
fprintf(stderr, "%s: %s\n", program, error_msg);
}
2022-06-02 01:37:43 +02:00
void print_errorf(const char *format, ...)
2022-05-22 09:55:04 +02:00
{
char s[1024];
FORMATTED_STRING(s, format);
print_error(s);
}