Hi,

when using arrays in C the layout of arrays is sort of flat, since
pointer arithmetics for accessing values works (e.g. "pointer += 4" for
32 bit values).

Is this the same for pascal/fpc? Do values of for example an integer
array sit in memory at 4 Byte boundaries?

I need to hand over arrays to a C library and have no influence on how
access is done internally (still und investigation). Currently the C lib
reads garbage from my array ...

TIA,
Marc


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to