]> diplodocus.org Git - nmh/blob - sbr/discard.c
sendsbr.c: Move interface to own file.
[nmh] / sbr / discard.c
1 /* discard.c -- discard output on a file pointer
2 *
3 * This code is Copyright (c) 2002, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information.
6 */
7
8 #include "h/mh.h"
9 #include "discard.h"
10
11 #include <termios.h>
12
13 void
14 discard (FILE *io)
15 {
16 if (io)
17 tcflush (fileno(io), TCOFLUSH);
18 }