home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
simtel
/
sigm
/
vols000
/
vol078
/
incl.c
< prev
next >
Wrap
C/C++ Source or Header
|
1984-04-29
|
424b
|
21 lines
/* include - include file */
include (file, func)
/******************/
char *file;
int (*func)();
{
char *alloc();
struct _buf *iobuf;
iobuf = alloc (BUFSIZ);
if (fopen (file, iobuf) == ERROR)
diagnostic (FALSE, "can't open ", file, NULL);
else
{
(*func)(file, iobuf);
fclose (iobuf);
}
free (iobuf);
} /* include */