Does anyone know any C code to get the remaining disk space ?
hi!
use stat() and then ustat()
see the man pages:
statfs(2) statfs(2)
NAME
statfs, fstatfs, ustat - Gets file system statistics
#include <sys/types.h>
#include <ustat.h>
int ustat(
dev_t device,
struct ustat *buffer );
.
.
.
Regards
Shaik
do you know of any solutions not using statfs() or ustat()
as my unix compiler isn't compatible with them.