On Thu, 1 Apr 1999, holotko wrote:
# My question. Do I really need to add the type cast (ObjectType *)
# before the call to malloc() ?
no. but gcc will warn you, if you use -Wall, about it. Doesn't do any harm
leaving it in and if you miss it out gcc will add it in itself. Technically
you need it because malloc returns memory cast to void *, which your data
structures aren't. Makes your code more readable if you include it though.
--
+++ If at first you don't succeed, you must be a programmer +++
[EMAIL PROTECTED] http://www.users.globalnet.co.uk/~kermit