Please don't start new topis by replying to another one. This makes reading
mails in the tree view very confusing.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
since this is from a c library you should define {$packrecords c} on
the unit with this code.
type
BIGNUM = bignum_st;
PBIGNUM = ^bignum_st;
bignum_st = record
d: PBN_ULONG;
top: cint;
dmax: cint;
neg: cint;
flags: cint;
end;
TBN_bn2hex = function (const a: PBIGNUM): PChar;
Hello
Would any FPC guru help me converting this C code?
(it's from bn.h/libeay32.dll)
typedef struct bignum_st BIGNUM;
struct bignum_st
{
BN_ULONG *d;
int top;
int dmax;
int neg;
int flags;
};
char *BN_bn2hex(const BIGNUM *a);
I guess my problem is understanding pointers, and ho