i would like to know how to do a function call that gets me the available disk space. i am porting a dos program over and one of the things we do is check disk space to see if the program should continue or not. Can anyone please help me or point me out in some direction?
i have tried looking thru usr/include and have not found anything i can use. i suppose i could try looking at the code for df (the linux utility) but i have tried the web on this and can't figure out where i can get the code.
any help will be appreciated.