xt_fd_purge(3)

LIBRARY
#include <xtend/file.h>
-lxtend

SYNOPSIS

void    xt_fd_purge(int fd)

ARGUMENTS
fd: File descriptor to purge

DESCRIPTION
xt_fd_purge() reads and discards unwanted input data (such as leftover input from a keyboard or mouse) from the input file descriptor fd.

SEE ALSO
read(3), fcntl(3)