Re: [fpc-pascal] Two-dimensional dynamic arrays in C libraries

2005-09-02 Thread Michael Van Canneyt
On Fri, 15 Jul 2005, Silvio a Beccara wrote: > Hi everybody, > > I need to pass two- or three-dimensional dynamic arrays to C libraries from > FPC. I know this is feasible with one-dimensional arrays, by using a pointer > to the array: for instance > > ---code > type > PDouble = ^Double; >

[fpc-pascal] Two-dimensional dynamic arrays in C libraries

2005-09-02 Thread Silvio a Beccara
Hi everybody, I need to pass two- or three-dimensional dynamic arrays to C libraries from FPC. I know this is feasible with one-dimensional arrays, by using a pointer to the array: for instance ---code type PDouble = ^Double; function get_array(a, b: PDouble; size: integer; value: double): i