home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
cnews.src.lzh
/
libc
/
closeall.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-07-05
|
325b
|
21 lines
#ifndef AMIGA
# include <sys/param.h>
#else
# include <stdio.h>
# ifndef MCH_AMIGA
# define NOFILE _NFILE /* For Lattice */
# else
# define NOFILE MAXSTREAM /* For Manx */
# endif
#endif /* AMIGA */
void
closeall(leavestd)
int leavestd;
{
register int i;
for (i = (leavestd? 3: 0); i < NOFILE; i++)
close(i);
}