Help me cast this!

Henry Spencer henry at utzoo.uucp
Thu May 5 06:55:05 AEST 1988


> Lint is complaining about the assignmemt, not because of the casting, but
> because it is not sure the byte address returned by malloc will allign the
> structure correctly. (It most likely will, but link cannot be sure).

Malloc in fact is required to, so there is no need for elaborate measures
to ensure it.  The problem is that lint does not know that malloc does in
fact guarantee alignment.
-- 
NASA is to spaceflight as            |  Henry Spencer @ U of Toronto Zoology
the Post Office is to mail.          | {ihnp4,decvax,uunet!mnetor}!utzoo!henry



More information about the Comp.lang.c mailing list