FreeBASIC  0.91.0
sys_fmem.c
Go to the documentation of this file.
1 /* fre() function */
2 
3 #include "../fb.h"
4 #include <dpmi.h>
5 
6 FBCALL size_t fb_GetMemAvail( int mode )
7 {
8  __dpmi_free_mem_info info;
9  (void)__dpmi_get_free_memory_information(&info);
10  return info.total_number_of_free_pages * 4096;
11 }