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++ 3.0r4 - <b>mk_fp</b> 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>
   #include <stdlib.h>

   int 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 EXIT_SUCCESS;
   }

Return Value

   MK_FP returns a far pointer.

See Also

   FP_SEG, FP_OFF



See Also: FP_

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