Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>bdosptr() ms-dos system call</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
bdosptr()                MS-DOS System Call

 #include   <dos.h>

 int        bdosptr(dosfun,arg,dosal);
 int        dosfun;                      function number
 void       *arg;                        DX or DS:DX values
 unsigned   dosal;                       AL register value

    bdosptr() provides direct access to many of the MS-DOS system calls
    which require a pointer argument.  It invokes the system call
    specified by 'dosfun'.  'arg' specifies the value of register DX in
    small data models, and the DS:DX values used in large data models.

    Returns:    The value of AX, if successful.  -1 is returned on
                failure and 'errno' and '_doserrno' are set.

      Notes:    In the large data models (compact-, large- and huge-), it
                is important to use bdosptr() instead of bdos() for
                system calls that require a pointer as the call argument.

See Also: bdos() harderr()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson