home *** CD-ROM | disk | FTP | other *** search
- #include <jaz.h>
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │jzintstk │
- │Initialize the directory stack structure before the first call to jzpushdir │
- │Synopsis: │
- │ jzintstk(&whead); │
- │ jzpshdir(&whead); │
- │ chdir("\\"); │
- │ ... │
- │ jzpshdir(&whead); │
- │ jzpopdir(&whead); │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
- jzintstk(fhead)
- TSTKHEAD *fhead;
- {
- fhead->numitems = 0; /* init stack to zero items */
- fhead->first = fhead->last = 0; /* init pointers */
- }