Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Help me cast this!
Message-ID: <1988May4.205505.586@utzoo.uucp>
Keywords: pointer to array of struct
Organization: U of Toronto Zoology
References: <294@fedeva.UUCP>, <554@amelia.nas.nasa.gov>
Date: Wed, 4 May 88 20:55:05 GMT

> 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
