www.delorie.com/djgpp/doc/libc-2.01/libc_67.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.

Example

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


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

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997