Help - Search - Members - Calendar
Full Version: How Do I Get Disk Space I.e. Dfree()
Linuxhelp > Support > Technical Support
jack v
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.
I don't really know of one off hand, the best thing to do is what you said, and parse the output of the df command. Maybe you can create a function call for it smile.gif

I have no real answer and i don't even know why i'm posting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.