]> diplodocus.org Git - nmh/blob - sbr/discard.c
Fix invalid pointer arithmetic.
[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
10 #include <termios.h>
11
12 void
13 discard (FILE *io)
14 {
15 if (io)
16 tcflush (fileno(io), TCOFLUSH);
17 }