file length

Angelo Fraietta angelo_f at bigpond.com
Fri May 24 22:23:25 UTC 2002


I ened up using:

    struct stat statbuf;
    fstat(fileno(_fp), &statbuf);
    return statbuf.st_size;


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.
>
>Ralf
>
>
>

-- 
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page


http://www.users.bigpond.com/angelo_f/

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20020525/902b1084/attachment-0001.html>


More information about the users mailing list