3 * File name: ir/common/xfprintf.c
4 * Purpose: Xfprintf --- extended formatted output to files.
5 * Author: Christian von Roques
7 * Created: 1999 by getting from fiasco
9 * Copyright: (c) 1995, 1996 Christian von Roques
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
25 xfprinter (void *f, const char *data, size_t len)
30 size_t n = fwrite (data, 1, togo, (FILE*)f);
41 xfprintf (FILE *F, const char *fmt, ...)
47 res = xvgprintf (xfprinter, F, fmt, args);
54 xvfprintf (FILE *F, const char *fmt, va_list args)
56 return xvgprintf (xfprinter, F, fmt, args);
61 xprintf (const char *fmt, ...)
67 res = xvgprintf (xfprinter, stdout, fmt, args);
73 xvprintf (const char *fmt, va_list args)
75 return xvgprintf (xfprinter, stdout, fmt, args);
78 #endif /* USE_PRINTF */