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.orig.lzh / libbig / sys.fast.c < prev   
C/C++ Source or Header  |  1989-06-27  |  587b  |  45 lines

  1. /*
  2.  * news sys file reading functions (fast, big, in-memory version)
  3.  */
  4.  
  5. #include <stdio.h>
  6. #include <sys/types.h>
  7. #include "news.h"
  8. #include "system.h"
  9.  
  10. /* imports */
  11. extern struct system *currsys, *firstsys;
  12.  
  13. /* exports */
  14. boolean justone = NO;
  15.  
  16. /* private */
  17. static struct system *thissys = NULL;
  18.  
  19. /* ARGSUSED */
  20. void
  21. rewsys(fp)
  22. FILE *fp;
  23. {
  24.     currsys = firstsys;
  25. }
  26.  
  27. struct system *
  28. mysysincache()                /* optimisation */
  29. {
  30.     return thissys;
  31. }
  32.  
  33. void
  34. remmysys(sys)                /* remember this system */
  35. struct system *sys;
  36. {
  37.     thissys = sys;
  38. }
  39.  
  40. void
  41. freecurrsys()
  42. {
  43.     /* never free sys entries */
  44. }
  45.