Re: Size of file



CBFalconer <cbfalconer@xxxxxxxxx> writes:
Keith Thompson wrote:
CBFalconer <cbfalconer@xxxxxxxxx> writes:

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

... snip ...

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



Relevant Pages

  • Re: How to learn C ?
    ... The functions you mention cannot be written in portable standard C. ... I'm actually in favour of the broadening of topicality in this group, ...
    (comp.lang.c)
  • Re: Is microprocessor an integrated circuit???
    ... <severe snip mode on> ... standard clearly defining a byte as not necessarily being eight bits. ... > what does ibm have to do with the official ... THe processor is not a microprocessor. ...
    (sci.electronics.design)
  • Re: add a rudder to a kayak?
    ... >> views on kayaks and rudders. ... <snip blather> ... You mean there's no women that prefer driving standard? ... >> free to pose it. ...
    (rec.boats.paddle)
  • Re: newbe and problems with sintax
    ... Carriage control applied to a processor-dependent set of units; ... What, pray tell, was standard about carriage control? ... in PDF format! ...
    (comp.lang.fortran)
  • Re: In the Shallow End
    ... You've never used fortran so obviously, again, you don't know what you are ... it wasn't extensions but the 2003 FORTRAN ... standard you were talking about. ...
    (comp.sys.mac.advocacy)