home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / JAZLIB.ARC / JZINTDIR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-07-17  |  721 b   |  22 lines

  1. #include <jzdirect.h>
  2. /*
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │jzintdir                                     │
  5. │Initialize the directory stack structure before the first call to jzpushdir │
  6. │Synopsis:                                     │
  7. │  jzintdir(&whead);                                 │
  8. │  jzpshdir(&whead);                                 │
  9. │  chdir("\\");                                                              │
  10. │  ...                                         │
  11. │  jzpshdir(&whead);                                 │
  12. │  jzpopdir(&whead);                                 │
  13. └────────────────────────────────────────────────────────────────────────────┘
  14. */
  15.  
  16. jzintdir(fhead)
  17. TDIRHEAD *fhead;
  18. {
  19.   fhead->numitems = 0;            /* init stack to zero items */
  20.   fhead->first = fhead->last = 0;    /* init pointers */
  21. }
  22.