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   
C/C++ Source or Header  |  1990-12-25  |  870b  |  63 lines

  1. /* :ts=4
  2.  * news sys file reading functions (fast, big, in-memory version)
  3.  *
  4.  *    $Log:    sys_fast.c,v $
  5.  * Revision 1.2  90/12/25  15:41:47  crash
  6.  * added include's for errno.h and fixerrno.h
  7.  * 
  8.  */
  9.  
  10. #include <stdio.h>
  11. #ifdef unix
  12. # include <sys/types.h>
  13. #endif /* unix */
  14. #include "news.h"
  15. #include "system.h"
  16.  
  17. /* imports */
  18. extern struct system *currsys, *firstsys;
  19.  
  20. /* private */
  21. static struct system *thissys = NULL;
  22.  
  23. void
  24. remmysys(sys)                /* remember this system */
  25. struct system *sys;
  26. {
  27.     thissys = sys;
  28. }
  29.  
  30. struct system *
  31. mysysincache()                /* optimisation */
  32. {
  33.     return thissys;
  34. }
  35.  
  36. void
  37. setupsys(fp)
  38. FILE *fp;
  39. {
  40.     rewind(fp);
  41. }
  42.  
  43. boolean
  44. donesys()
  45. {
  46.     return NO;
  47. }
  48.  
  49. /* ARGSUSED */
  50. void
  51. rewsys(fp)
  52. FILE *fp;
  53. {
  54.     currsys = firstsys;
  55. }
  56.  
  57. void
  58. advcurrsys()    /* advance currsys to the next in-core sys entry, if any. */
  59. {
  60.     if (currsys != NULL)
  61.         currsys = currsys->sy_next;
  62. }
  63.