On Thu, Oct 23, 2003, Michael Hipp wrote:
>Anyone know a simple call from c that will give the free space available
>on a volume (e.g. /dev/hda1)?
I would probably parse the output of the appropriate call to ``df''.
FILE *dfpipe = popen("df", "r"); ...
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
``Liberals love to say things like, 'We're just asking everyone to pay
their fair share.' But government is not about asking. It is about telling.
The difference is fundamental. It is the difference between making love and
being raped, between working for a living and being a slave.''
Dr. Thomas Sowell, Forbes, July 1994
_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users