Re: Casting malloc (was: Reading a string of unknown size)
- From: richard@xxxxxxxxxxxxxxx (Richard Tobin)
- Date: 29 Nov 2006 00:14:27 GMT
In article <eki4r708e2@xxxxxxxxxxxxxxxxx>,
Chris Torek <nospam@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.
Or use IBM's PL/1 checkout compiler. It will give you lots of
warnings, but will probably translate your code into PL/1 as a bonus.
-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
.
- References:
- Casting malloc (was: Reading a string of unknown size)
- From: CBFalconer
- Re: Casting malloc (was: Reading a string of unknown size)
- From: websnarf
- Re: Casting malloc (was: Reading a string of unknown size)
- From: Chris Torek
- Casting malloc (was: Reading a string of unknown size)
- Prev by Date: Re: static memory allocation versus dynamic memory allocation
- Previous by thread: Re: Casting malloc (was: Reading a string of unknown size)
- Next by thread: Re: Casting malloc
- Index(es):
Relevant Pages
|
|