Re: Casting malloc (was: Reading a string of unknown size)
- From: Chris Torek <nospam@xxxxxxxxx>
- Date: 28 Nov 2006 20:05:59 GMT
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.
.
- Follow-Ups:
- Re: Casting malloc (was: Reading a string of unknown size)
- From: Richard Tobin
- Re: Casting malloc (was: Reading a string of unknown size)
- References:
- Re: Reading a string of unknown size
- From: websnarf
- Casting malloc (was: Reading a string of unknown size)
- From: CBFalconer
- Re: Casting malloc (was: Reading a string of unknown size)
- From: websnarf
- Re: Reading a string of unknown size
- Prev by Date: Re: Macros
- Next by Date: Re: Question regarding fgets and new lines
- Previous by thread: Re: Casting malloc (was: Reading a string of unknown size)
- Next by thread: Re: Casting malloc (was: Reading a string of unknown size)
- Index(es):
Relevant Pages
|
|