Francesco Bonomi wrote:
I have been following the "cannot take address of packed record" thread and now I have a similar problem.
I perfectly understand that doing a strcopy is an implicit conversion, but I think that the program gets carried away during checks :-)
I had a VERY complex data structure and it took me quite a while to reduce it to the minimum, please bear with me if it's anyway a bit intricate.
... snip ... AFAICS you have no components smaller than a byte in the first place. If you are operating on a byte addressing machine, why bother with the PACKED descriptor? You should simply arrange your records so that the larger items, such as integers, precede the smaller ones, such as chars. -- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!