I'm writing in C89 and I need to read structs in from file into an array.
I thought of setting the array to half the availble memory so as to not put too much strain on the pc.
Does anybody know how to determin hom much memory is available - not including swap.
I have not found an answer anywhere. Any help would be apreiciated.