home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d473
/
cnewssrc
/
cnews_src.lzh
/
relay
/
io.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-05-28
|
514b
|
32 lines
/* :ts=4
* common i/o operations
*
* $Log$
*/
#include <stdio.h>
#ifdef unix
# include <sys/types.h>
#endif /* unix */
#include "news.h"
#include "headers.h"
#include "article.h"
#include "msgs.h"
/*
* If *fpp is non-null, fclose it and check for errors.
* On error, call fulldisk(art, name).
*/
void
nnfclose(art, fpp, name)
struct article *art;
register FILE **fpp;
char *name;
{
if (*fpp != NULL) {
if (nfclose(*fpp) == EOF)
fulldisk(art, name);
*fpp = NULL; /* mark the stream closed */
}
}