blob: c00a4c1a315baf49ab8163be5c228cf89a3f2ff4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include "config.h"
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include "logerr.h"
/**
* @tags infallible
*/
void
vlogerr(
const char *const file,
const char *const function,
const int lineno,
FILE *restrict stream,
const char *restrict format,
...
) {
(void)fprintf(stream, "%s:%s:%d: ", file, function, lineno);
va_list args;
va_start(args, format);
(void)vfprintf(stream, format, args);
va_end(args);
return;
}
|