Mail Archives: djgpp/1997/03/05/02:42:30
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);
Maybe what's not ansi is:
*(malloc(size))=some_value;
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -