biosmemory
raw OCR
Returns memory size.
Defined in header <bios.h>
Syntax
#include <bios.h>
int biosm.emory(void);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ | ■ |
Remarks
biosmemory returns the size of RAM memory using BIOS interrupt 0x12. This does not include display adapter memory, extended memory, or expanded memory.
Return value
biosmemory returns the size of RAM memory in IK blocks.
Example
#include <stdio.h>
#include <bios.h>
int main(void)
{
int memory_size;
memory_size = biosmemory (); /* returns value up to 640K */
printf("RAM size = %dK\n", memory_size) ;
return 0;
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/bios.h/biosmemory/
· short form /3.1/biosmemory/