ctpv/error.c
2022-06-02 04:37:43 +05:00

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);
}