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