home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
JAZLIB
/
PUSHDIR.DMO
< prev
next >
Wrap
Text File
|
1993-12-01
|
455b
|
24 lines
#include <pushpop.h>
main()
{
char wpath[STKRECSIZE]; /* hold the path to push */
int whandle;
if ((whandle = jzopnfil(FNAME,2)) == -1)
whandle = jzcrtfil(FNAME,0); /* create if not exist */
jzsekfil(whandle,0L,2); /* seek to endof file */
memset(wpath,0,STKRECSIZE); /* init to null */
jzgetdr(wpath); /* get current subdirectory */
jzwrtfil(whandle,wpath,STKRECSIZE);
jzclsfil(whandle);
}