|
From: | Ognyan Kulev |
Subject: | Re: hostmux patch |
Date: | Mon, 04 Mar 2002 12:37:05 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.8) Gecko/20020204 |
James Morrison wrote:
Humm, I do cast the return value of malloc, but any of the examples in the libc manual or the GCS also cast the return value of malloc The GCS only says not to cast to void * .
Casting the result of malloc is *required* in C++ and is *optional* in C. -- Ognyan Kulev <ogi@fmi.uni-sofia.bg>, "\"Programmer\""
[Prev in Thread] | Current Thread | [Next in Thread] |