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

 
Output of file : JZFNDNXT.C contained in archive : JAZ_CLIB.ZIP
/*
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Title : jzfndnxt ³
³ Purpose : find the next matching file from the disk transfer area specified³
³ in a previous call to jzfndfst ³
³ Parms ³
³ fdta - directory record defined in jzdirect.h ³
³ ³
³ i.e. error = jzfndnxt(&dir_record); ³
³ Written by Jack Zucker - 75766,1336 301-794-5950 on 1/15/85 ³ ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
*/

#include
#include
jzfndnxt(fdta)
TDIR *fdta;

{

TREG wreg;
int wdtaofs,wdtaseg;

jzgetdta(&wdtaofs,&wdtaseg); /* save old dta address */

jzsetdta(fdta); /* set new address */

wreg.h.ah = 0x4f; /* find next function */
msdos(&wreg);

jzsetdta(wdtaofs); /* conditionalize later for large model */

if (wreg.x.flags & 0x0001 == 1) return(wreg.x.ax);
else return(0); /* return 0 if no error, otherwise dos error code */

}


  3 Responses to “Category : C Source Code
Archive   : JAZ_CLIB.ZIP
Filename : JZFNDNXT.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/