_bios_memsize
raw OCR
Returns memory size.
Defined in header <bios.h>
Syntax
#include <bios.h>
unsigned _bios_memsize(void);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ | ■ |
Remarks
_bios_memsize returns the size of RAM memory using BIOS interrupt 0x12. This does not include display adapter memory, extended memory, or expanded memory.
Return value
_bios_memsize returns the size of RAM memory in IK blocks.
Example
#include <stdio.h>
#include <bios.h>
int main(void)
unsigned memory_size;
memory_size = _bios_memsize() ; /* returns value up to 640K */
printfC'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.
Extraction notes
- heading `_bios_nnennsize` read as `_bios_memsize`
Stable link: /3.1/bios.h/_bios_memsize/
· short form /3.1/_bios_memsize/