home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
JAZLIB
/
JZGETDR.C
< prev
next >
Wrap
Text File
|
1993-12-01
|
581b
|
27 lines
#include <jaz.h>
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzgetdr │
│get the current working sub-directory │
│Synopsis: │
│ jzgetdr(wdirectory); │
│ │
└────────────────────────────────────────────────────────────────────────────┘
*/
jzgetdr(fdir)
char *fdir;
{
TREG wreg;
wreg.h.ah = 0x47;
wreg.x.ds = getds();
wreg.x.si = (int) fdir;
wreg.h.dl = 0; /* default directory */
msdos(&wreg);
if (wreg.x.flags & 1)
*fdir = 0;
}