corsepiu at faw.uni-ulm.de
Sat May 25 03:18:36 UTC 2002
Am Sam, 2002-05-25 um 00.23 schrieb Angelo Fraietta:
> I ened up using:
> struct stat statbuf;
> fstat(fileno(_fp), &statbuf);
> return statbuf.st_size;
Seems correct to me.
> Ralf Corsepius wrote:
> >Am Fre, 2002-05-24 um 01.55 schrieb Angelo Fraietta:
> >>How does one determine the file length of a file?
> >C.f. man 2 stat
> >struct stat -> off_t is probably what you are looking for.
Dooh. WTH did I write there?
Of cause I meant "struct stat -> st_size".
More information about the users