Xref: utzoo comp.lang.c:17672 comp.lang.fortran:1941 Path: utzoo!attcan!uunet!lll-winken!ames!ucsd!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: fortran to C converter Keywords: fortran,C,language,translator Message-ID: <10039@smoke.BRL.MIL> Date: 16 Apr 89 03:32:41 GMT References: <30359@stellar.UUCP> <618@peritek.UUCP> <158@np1.hep.nl> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <158@np1.hep.nl> t19@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.