|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 407 (0x197)
Types: TextFile
Names: »empty.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦e7f64e0c0⟧ »EurOpenD3/mail/vmh.tar.Z«
└─⟦dcb95597f⟧
└─⟦this⟧ »empty.c«
#ifndef lint
static char rcsid[] =
"$Header: empty.c,v 2.5 86/10/09 16:00:30 deboor Exp $";
static char notice[] =
"This program is in the public domain and is available for unlimited \
distribution as long as this notice is enclosed.";
#endif
#include <sys/ioctl.h>
#include "casts.h"
empty (fd)
int fd;
{
long count;
if (Ioctl (fd, FIONREAD, &count) < 0)
return 1;
return count <= 0;
}