I would like to start a program (memtester, I allready have it) and the first thing is that program has to display amount of used and free memory, and then you enter amount of memory to test. The only thing is, that I don't really know to get that amount of free and used memory. In linux, function free -m displays that(more than that) and the data is available on /proc/meminfo. I don't really want to use system function, because it doesn't work well.
Please help me.
Have a nice Day