Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - mk_fp http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   MK_FP

   Usage
   #include <dos.h>
   void far *MK_FP(unsigned seg, unsigned off);

   Description
   Converts the unsigned segment and offset values to a far pointer.

   Example
   #include <dos.h>
   #include <stdio.h>

   main()
   {
   char far *p;
   unsigned int segment = 0xb800, offset = 0;

        p = MK_FP(segment,offset);
        printf("The CGA video buffer is at %lp\n",p);
   }

   Return Value
   MK_FP returns a far pointer.



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