Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>biosmemory() return memory size</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 biosmemory()            Return Memory Size

 #include   <bios.h>

 int        biosmemory(void);

    biosmemory() uses BIOS interrupt 0x12 to return memory size in 1K
    blocks.

       Returns:     Memory size

   Portability:     IBM PC and compatibles only.

   -------------------------------- Example ---------------------------------

 The following statements report the size of memory.

           #include <stdio.h>              /* for printf */
           #include <bios.h>               /* for biosmemory */

           main()
           {
               printf("%d K of memory present\n",biosmemory());
           }




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