Hi,

If you know, that struct does its job as if you specified packed in C,
then you can pass packed or aligned structs to C functions, just
you need to do the alignment yourself.

I vaguely remember the pain, when I needed to process BMP graphics
files on DEC Alpha processors...

Andras Pahi

> On 2021. Dec 7., at 14:11, Jason Vas Dias <jason.vas.d...@gmail.com> wrote:
>  But it does not do what it claims ,  because it does not
>  insert the required pad bytes - it lays everything out as
>  if the programmer had specified '#pragma packed' or
>  '__attribute__((packed))' for the whole structure.


-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to