Category : C Source Code
Archive   : JAZ_CLIB.ZIP
Filename : JZGETDIR.C

 
Output of file : JZGETDIR.C contained in archive : JAZ_CLIB.ZIP
/*
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³jzgetdir.c ³
³Return a pointer to a buffer which contains the low level directory info. ³
³Including information about deletes, etc. ³
³ ³
³ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
*/

jzgetdir( fdir , fdrive , fentries)
TDIR **fdir;
int fdrive;
int *fentries;
{
TDISKBLK wdisk;
int wstart; /* start of directory sectors */
TDIR *malloc();

diskinfo(fdrive,&wdisk); /* get disk information */

*fentries = wdisk.numdir; /* number of dir entries */

/* directory starts immediately after the two copies of the FAT */
/* which are immediately after the boot sector */

wstart = (wdisk.sectfat << 1) + 1;

if ( ! (*fdir = malloc(wdisk.numdir * 32))) {
printf("Insufficient Memory for directory. Aborting...");
exit(0);
}

dosreads(fdrive,wstart,wdisk.numdir * 32 / wdisk.bytes,*fdir);

}


  3 Responses to “Category : C Source Code
Archive   : JAZ_CLIB.ZIP
Filename : JZGETDIR.C

  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/