commom malloc/free practice breaks standard - author strikes back

Richard H. Gumpertz rhg at cpsolv.UUCP
Sat Oct 21 15:38:37 AEST 1989


In article <3683 at altos86.Altos.COM> scott at altos86.UUCP (Scott A. Rotondo) writes:
>Section 4.10.3 doesn't simply state that you must be able to cast or assign
>the pointer and use it; it says that you must be able to use the pointer
>because it is "suitably aligned."  Your hypothetical implementation only
>meets the weaker of these two conditions.

1) How can one "use the pointer" without assigning or casting it?

2) The defect is not in the description of the return value from malloc.  It is
   in the description of the parameter to free (and realloc).
-- 
==========================================================================
| Richard H. Gumpertz   rhg at cpsolv.UUCP -or- ...!uunet!amgraf!cpsolv!rhg |
| Computer Problem Solving, 8905 Mohawk Lane, Leawood, Kansas 66206-1749 |
==========================================================================



More information about the Comp.std.c mailing list