From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,de9de2f8fd1d9bb X-Google-Attributes: gidfee84,public From: "Shlenov Svyatoslav" Subject: Re: passing between C and Fortran Date: 1995/11/16 Message-ID: <30abd3e5@fort.phys.msu.su>#1/1 X-Deja-AN: 119507236 distribution: world sender: daemon@news.phys.msu.su references: <48aa3t$9im@news.cea.fr> organization: MSU, Physics Dept. reply-to: shlenov@fort.phys.msu.su newsgroups: comp.unix.osf.osf1 x-mailer: MAIL2 ( Ver. 2.11.3 from TECHNO ) >... and inside the Fortran, >i need to call some C functions. > >>>> file c2.c <<< >void recupfort(ic) Instead of using >$ALIAS recupfort='recupfort'(%val) in the Fortran program you may name the C-program like void recupfort_(int* ic) and call it from inside Fortran as call recuport(ic) (without _ ) but of course the C-program in this case should deal with pointers. S. Shlenov.