Category : C Source Code
Archive   : JAZLIB.ZIP
Filename : POPDIR.DMO

 
Output of file : POPDIR.DMO contained in archive : JAZLIB.ZIP
#include

int whandle,wread;
char wpath[STKRECSIZE];
char wpathfromroot[STKRECSIZE+1]; /* '\\' + wpath */
long fsize,jzsekfil();
main()
{

if ((whandle = jzopnfil(FNAME,2)) != -1) {
fsize = jzsekfil(whandle,0L,2); /* seek to end of file */
if (fsize) {
fsize -= (long) STKRECSIZE;
jzsekfil(whandle,fsize,0); /* seek to eof - 1 record */
jzredfil(whandle,wpath,STKRECSIZE);
strcpy(wpathfromroot,"\\"); /* start from root dir */
strcat(wpathfromroot,wpath); /* add full path */
chdir(wpathfromroot);
chsize(whandle,fsize); /* "pop" file (truncate) */
jzclsfil(whandle);
exit(0);
}
else
exit(1);
}
else
exit(1);
}



  3 Responses to “Category : C Source Code
Archive   : JAZLIB.ZIP
Filename : POPDIR.DMO

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/