fortran to C converter
Doug Gwyn
gwyn at smoke.BRL.MIL
Sun Apr 16 13:32:41 AEST 1989
In article <158 at np1.hep.nl> t19 at np1.hep.nl (Geert J v Oldenborgh) writes:
>Just out of curiosity, how are (double) complex variables translated to C?
>This is the only stumbling block I have in converting freely back and forward.
Very likely a DOUBLE PRECISION COMPLEX datum is represented by what in C
would be expressed as a structure:
typedef struct
{
double re;
double im;
} dcomplex;
Because of call-by-reference, when one of these data is passed as a
subprogram argument the C equivalent would be to pass a pointer to the
datum.
More information about the Comp.lang.c
mailing list