Re: Casting malloc (was: Reading a string of unknown size)



In article <1164743682.779690.167070@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<websnarf@xxxxxxxxx> wrote:
And, of course, the real difference is that the first compiles straight
in C++, and the second is just an error. I have found that in general
the C++ optimizers and warnings are better for the C++ mode of my
compilers than the C mode.

Fortran compilers are usually even better than that. Obviously
you should write your C code so that it compiles with Fortran compilers.
--
In-Real-Life: Chris Torek, Wind River Systems
Salt Lake City, UT, USA (40°39.22'N, 111°50.29'W) +1 801 277 2603
email: forget about it http://web.torek.net/torek/index.html
Reading email is like searching for food in the garbage, thanks to spammers.
.



Relevant Pages

  • Re: a dumb strcat question
    ... it takes N+1 characters to store a string ... Reading email is like searching for food in the garbage, thanks to spammers. ...
    (comp.lang.c)
  • Re: malloc question - what happens when chunk gets free?
    ... >My computers output is not the same as the one [zerro@software.com.pl ... Reading email is like searching for food in the garbage, thanks to spammers. ...
    (comp.lang.c)
  • Re: Yet even another GOOG post
    ... "problem" systems had heat rates of 12000 to 14000, ... Reading email is like searching for food in the garbage, thanks to spammers. ...
    (misc.invest.stocks)
  • Re: Reason for the Format
    ... Reading email is like searching for food in the garbage, thanks to spammers. ... Prev by Date: ...
    (comp.lang.c)
  • Re: scanf(), ungetc() behaviour.
    ... Charles Krug wrote: ... Reading email is like searching for food in the garbage, thanks to spammers. ...
    (comp.lang.c)