This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/b_memsiz.c

12 lines
196 B
C
Raw Permalink Normal View History

#include <stdio.h>
#include <bios.h>
void main()
{
unsigned short memsize;
memsize = _bios_memsize();
printf( "The total amount of memory is: %dK\n",
memsize );
}