How to read in file size
Adam Stoller
ghoti+ at andrew.cmu.edu
Tue Jun 12 22:09:46 AEST 1990
Excerpts from netnews.comp.lang.c: 12-Jun-90 How to read in file size
Haseen I. Alam at umn-d-ub. (1555)
I am using BSD Unix 4.2 on Sun 3's, a Sparc, and on a Encore multimax. .....
I am aware of the wc (word count) program in unix......
> .....But I need to read that into my program.... Is there a built in C
function that will do this.
Any helpful gesture will be highly appreciated. Thanks.
Haseen.
In BSD (at least) - look up the function 'stat' and its structure field
'st_size'.
--fish
More information about the Comp.lang.c
mailing list