[fpc-pascal] Resending: Trying to convert some C code

Henry Vermaak henry.vermaak at gmail.com
Tue Nov 7 15:03:45 CET 2006

>BN_ULONG is just another way of saying unsigned long.
>But redefined because it's C & for different compilers/platforms i think.

in that case, use d: PCardinal or pcULong (in ctypes - probably better)

>As in, is this right "way" to convert parameter & return value..?
>char *BN_bn2hex(const BIGNUM *a);
>function BN_Bn2Hex(a:BNPtr):PChar; // here BNPtr is of type BNPtr:^BIGNUM

that looks o.k.  rather use "const a:BNPtr", though.


More information about the fpc-pascal mailing list