1 | /*
2 | ** $Log: mfprintf.c,v $
3 | ** Revision 1.2 2000/11/14 14:27:37 miller
4 | ** Nothing
5 | **
6 | ** Revision 1.1 1998/02/28 17:49:42 david
7 | ** Initial revision
8 | **
9 | ** Revision 1.1 1996/10/20 12:29:45 rpaar
10 | ** Morrolan v9.0
11 | **
12 | */
13 |
14 |
15 | /*------------------------------------------------------------------*/
16 | /* This is like fprintf(), but it sends to the file pointer "mbfp" */
17 | /* as well as the normal file pointer. A bit of a kludgy fix to */
18 | /* allow moderators to see the real scoop on grey/faked press. */
19 | /* */
20 | /* Written by Jonathan S. Haas, positron@eecs.umich.edu, 10 Mar 93 */
21 | /*------------------------------------------------------------------*/
22 |
23 | #include <stdio.h>
24 | #include <stdarg.h>
25 | #include "mail.h"
26 | #define MAXARGS 100
27 |
28 | void mfprintf(FILE * the_file, char *fmt,...)
29 | {
30 | va_list args;
31 | char string[200];
32 |
33 | va_start(args, fmt);
34 | vsprintf(string, fmt, args);
35 | va_end(args);
36 |
37 | fputs(string, the_file);
38 | fputs(string, mbfp);
39 | }
40 |