delorie.com/djgpp/doc/libc/libc_74.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <bios.h> unsigned biosmemory(void); |
This function returns the amount of system memory in 1k blocks.
Note that this function doesn't know about extended memory above the 640K mark, so it will report 640K at most. This is a limitation of the BIOS.
Bytes of memory / 1024.
ANSI/ISO C | No |
POSIX | No |
printf("This system has %d bytes of memory\n", biosmemory()*1024); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |