Hard Dirve Space Remaining

DOES ANYONE KNOW IF THERE IS ANY C CODE YOU CAN USE WITHIN UNIX TO FIND THE REMAINING DISK SPACE ON A HARD DRIVE.

You can use the statvfs() system call to get statistics about file systems. That's the one to use.

Your os may support earlier system calls like statfs() or ustat(). I would avoid these and use the more modern statvfs().

DO YOU KNOW WHERE YOU CAN FIND EXAMPLES OF HOW TO USE THESE FUNCTIONS???

you can use:

<pre>

df

and

df -k

</pre>

these commands will sort you out
Good luck

try using df -v to show your used & remaining space of all your filesystems. this works in SCO unix - not sure about other versions