blob: 001f2afedb55a71e8e9f66248f08929e5dcbe0d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* See LICENSE file for copyright and license details. */
#include <stdio.h>
#define efflush(...) enfflush(1, __VA_ARGS__)
static inline void
enfflush(int status, FILE *fp, const char *fname)
{
fflush(fp);
if (ferror(fp))
enprintf(status, "%s:", fname);
}
|