Mail Archives: djgpp/1997/03/05/06:13:15
Paul Derbyshire (ao950 AT FreeNet DOT Carleton DOT CA) wrote:
: I have never explicitly cast a malloc pointer when assigning it. Even with
: my usual -Wall -Werror it never causes any complaint from gcc.
: Are you sure this is non-ansi?
: mypointer=malloc(size);
I'm not sure what the standard says for C programs, but for C++ programs it
is definitely not allowed - try it. I was under the impression that ANSI C
was basically ANSI C++ without classes; clearly I'm wrong.
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -