mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-07-15 05:44:57 +02:00
19 lines
386 B
C
19 lines
386 B
C
#include <stdio.h>
|
|
|
|
#include "error.h"
|
|
#include "utils.h"
|
|
|
|
void print_error(const char *error_msg)
|
|
{
|
|
/* We print errors to stdout because lf file manager
|
|
* doesn't print stderr in the preview window. */
|
|
fprintf(stdout, "%s: %s\n", program, error_msg);
|
|
}
|
|
|
|
void print_errorf(const char *format, ...)
|
|
{
|
|
char s[1024];
|
|
FORMATTED_STRING(s, format);
|
|
print_error(s);
|
|
}
|