home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
DJLSR106.ZIP
/
LIBSRC
/
C
/
DOS
/
BDOSPTR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-02
|
262b
|
18 lines
#include <errno.h>
#include <dos.h>
bdosptr(int func, void *dx, unsigned al)
{
union REGS r;
r.x.dx = dx;
r.h.ah = func;
r.h.al = al;
int86(0x21, &r, &r);
if (r.x.cflag)
{
errno = r.x.ax;
return -1;
}
return r.x.ax;
}