Re: Size of file
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Fri, 03 Oct 2008 16:37:54 -0700
CBFalconer <cbfalconer@xxxxxxxxx> writes:
Keith Thompson wrote:
CBFalconer <cbfalconer@xxxxxxxxx> writes:... snip ...
... snip ...
stat is not present in standard C. Thus it can do anything,
and is off topic here unless you present its actual coding (in
standard C).
If you want to say it's off-topic, just say it's off-topic (and
I agree, it is off-topic, though I don't object to a brief
mention). Dragging in absurd, and presumably unserious,
suggestions about how it *could* be topical is not at all helpful.
I disagree. There is no reason a user can't write his own stat()
function, say as:
int stat(char *s) {
return !!*s;
}
I think my response (above) covered the possibilities.
The previous poster talked about using stat to determine the size of a
file.
Topicality doesn't preclude using a little common sense. When you
talk about Pascal, I generally assume you mean the language, not the
philosopher.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.
- Follow-Ups:
- Re: Size of file
- From: Richard Heathfield
- Re: Size of file
- References:
- Size of file
- From: MisterE
- Re: Size of file
- From: arnuld
- Re: Size of file
- From: CBFalconer
- Re: Size of file
- From: Keith Thompson
- Re: Size of file
- From: CBFalconer
- Size of file
- Prev by Date: Re: Hallo
- Next by Date: Re: Pointer Arithmetic Problem
- Previous by thread: Re: Size of file
- Next by thread: Re: Size of file
- Index(es):
Relevant Pages
|