commom malloc/free practice breaks standard - author strikes back

Conor P. Cahill cpcahil at virtech.UUCP
Sat Oct 21 07:01:46 AEST 1989


In article <992 at cirrusl.UUCP>, dhesi at sun505.UUCP (Rahul Dhesi) writes:
> information.  Can somebody quote chapter and verse to show that the
> standard does require the series of casts
> 
>      void * ->  OBJ *  ->  void *
> 
> to yield the original pointer?

The standard doesn't require this.  It requires that 

      OBJ * -> void * ->  OBJ * 

yield the original pointer.

-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.lang.c mailing list