home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
400-499
/
ff473.lzh
/
CNewsSrc
/
cnews_src.lzh
/
libbig
/
sys_fast.c
< prev
Wrap
C/C++ Source or Header
|
1990-12-25
|
870b
|
63 lines
/* :ts=4
* news sys file reading functions (fast, big, in-memory version)
*
* $Log: sys_fast.c,v $
* Revision 1.2 90/12/25 15:41:47 crash
* added include's for errno.h and fixerrno.h
*
*/
#include <stdio.h>
#ifdef unix
# include <sys/types.h>
#endif /* unix */
#include "news.h"
#include "system.h"
/* imports */
extern struct system *currsys, *firstsys;
/* private */
static struct system *thissys = NULL;
void
remmysys(sys) /* remember this system */
struct system *sys;
{
thissys = sys;
}
struct system *
mysysincache() /* optimisation */
{
return thissys;
}
void
setupsys(fp)
FILE *fp;
{
rewind(fp);
}
boolean
donesys()
{
return NO;
}
/* ARGSUSED */
void
rewsys(fp)
FILE *fp;
{
currsys = firstsys;
}
void
advcurrsys() /* advance currsys to the next in-core sys entry, if any. */
{
if (currsys != NULL)
currsys = currsys->sy_next;
}