www.delorie.com/djgpp/doc/libc-2.02/libc_69.html   search  
Go to the first, previous, next, last section, table of contents.


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.

Portability

not ANSI, not POSIX

Example

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


Go to the first, previous, next, last section, table of contents.

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 1998   by DJ Delorie     Updated Dec 1998  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)