14 Aug
2006
14 Aug
'06
18:32
On Monday 14 August 2006 2:21 pm, Jan Trippler wrote:
Am Montag, 14. August 2006 20:05 schrieb Jerry Feldman: [...]
Just a quick code nit. Why do you do a strdup (argv[1]) and strdup(".") where a simple pointer assignment works fine here: if (argc == 2) p = argv[1]; else p = ".";
[...]
Yes, you're right. Sometimes one forgets the simple way ;-) True. The bottom line is that you presented statvfs(2) which appears to somewhat solve the OP's problem.
--
Jerry Feldman