->How can I find out how much memory is available?
Printable View
->How can I find out how much memory is available?
well this is for windows only but
Code:
#include<windows.h>
int main(void)
{
MEMORYSTATUS memstat;
GlobalMemoryStatus(&memstat);
printf("%d",memstat.dwAvailPhys);
return 0;
}