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 <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9