Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.fortran    |    Putting John Backus on a giant pedestal    |    5,127 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,887 of 5,127    |
|    Lawrence D'Oliveiro to Lynn McGuire    |
|    Re: how do you send a fortran character     |
|    03 Jan 25 00:30:39    |
      From: ldo@nz.invalid              On Thu, 2 Jan 2025 02:27:54 -0600, Lynn McGuire wrote:              > How do you send a fortran character string from GCC to GFortran ?              Seems like trying to call Fortran routines from C is not quite       straightforward. Looking at the (draft?) Fortran 2023 spec, page 514 says:               In a reference from C to a Fortran procedure with an interoperable        interface, a C actual argument shall be the address of a C        descriptor for the intended effective argument if the        corresponding dummy argument interoperates with a C formal        parameter that is a pointer to CFI_cdesc_t.              The following section (page 516 onwards) defines these “C descriptors”. Or       alternatively (back to page 514), you might need to declare your Fortran       routine with the “BIND(C)” attribute.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca