void cpydata(int, int, char *, char *);
void cpydgst(int, int, char *, char *);
int decode_rfc2047(char *, char *, size_t);
-void discard(FILE *);
int default_done(int);
int execprog(char *, char **);
int execprogl(char *, char *, ...);
context_find.c context_read.c \
context_replace.c context_save.c \
cpydata.c cpydgst.c crawl_folders.c \
- discard.c dtime.c dtimep.c \
+ dtime.c dtimep.c \
error.c execprog.c ext_hook.c folder_addmsg.c folder_delmsgs.c \
folder_free.c folder_read.c \
folder_realloc.c gans.c getans.c getanswer.c \
+++ /dev/null
-/*
-** discard.c -- discard output on a file pointer
-**
-** This code is Copyright (c) 2002, by the authors of nmh. See the
-** COPYRIGHT file in the root directory of the nmh distribution for
-** complete copyright information.
-*/
-
-#include <h/mh.h>
-#include <termios.h>
-
-
-void
-discard(FILE *io)
-{
- if (io == NULL)
- return;
-
- tcflush(fileno(io), TCOFLUSH);
-
-#if defined(_FSTDIO) || defined(__DragonFly__)
- fpurge(io);
-#else
-# ifdef LINUX_STDIO
- io->_IO_write_ptr = io->_IO_write_base;
-# else
- if ((io->_ptr = io->_base))
- io->_cnt = 0;
-# endif
-#endif
-}