Re: Help ! how to get a file size larger than 2G?




"Joachim Schmitz" <nospam.jojo@xxxxxxxxxxxxxxxxxx> writes:
Since the undefined behaviour is nothing to so with stat, as such,
possibly you could explain? Surely not all "samples" that people post
where they are having difficulties need to be sanitised?!?!? At first
glance all I see really wrong is the comment about stat_p being a pointer.
It
isn't. And of course the lack of an include for printf.
And exactly that missing "#include <stdio.h>" is causing undefined behaviour
(varadic function without prototype).

Bye, Jojo

I know. hence I pointed it out. The point here is that yet again we have
"noise" shouting "OT" while not actually providing any help.


.



Relevant Pages

  • compiling ibcs on Debian 3.0 / 2.4.19 kernel and on Debian 2.2r5 / 2.2.26 kernel
    ... emulate.c:482: warning: initialization from incompatible pointer type ...
    (comp.os.linux.misc)
  • Re: confusion: casting function pointers
    ... pointer from the 'actual/other modules' that takes arguments of type ... list to types of void *). ... int main{ ... without a prototype, a number of special "promotion" rules take ...
    (comp.lang.c)
  • Re: incomplete array - why compiler error
    ... "pf" is a pointer to a function, ... a prototype, can be used by the compiler to determine ... I'm not aware of any actual implementations that take ...
    (comp.std.c)
  • Re: Missing prototype and resulting coredump
    ... If i am not putting the function prototype of a function ... returning a pointer, i get a core dump.Though this will happen less ... If your compiler does not issue a diagnostic for this code, ... The code has undefined behavior. ...
    (comp.lang.c)
  • Re: va_list usage
    ... prototype declaration of bazin scope at the call to it; ... In C99 of course you must have some declaration, ... pointer or struct that is passed by value and not shared. ...
    (comp.lang.c)