Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>biosmemory</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
biosmemory
==========

Syntax
------

     #include <bios.h>
     
     unsigned biosmemory(void);

Description
-----------

This function returns the amount of system memory in 1k blocks.

Note that this function will return 65535 if the system has more than
64M of memory.  This is a limitation of the BIOS.

Return Value
------------

Bytes of memory / 1024.

Example
-------

     printf("This system has %d bytes of memory\n", biosmemory()*1024);


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