TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:10781] Help with C
Quoting Jonathan Kline (jonathankl@sabis.org):
> Got a C questions for all you techs out there:
> In C for Linux how do you determine the size of a file? The goal
> is to check the file size and alert the user if it is greater then a
> certain number of bytes. Anyone have any thoughts on the idea?
Look at the stat function.
% man 2 stat
--
Bob Tanner <tanner@real-time.com> | Phone : (612)943-8700
http://www.real-time.com | Fax : (612)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9
- References:
- Help with C
- From: Jonathan Kline <jonathankl@sabis.org>