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,886 of 5,127    |
|    Steven G. Kargl to Lynn McGuire    |
|    Re: how do you send a fortran character     |
|    02 Jan 25 18:40:54    |
      From: sgk@REMOVEtroutmask.apl.washington.edu              On Thu, 02 Jan 2025 02:27:54 -0600, Lynn McGuire wrote:              > How do you send a fortran character string from GCC to GFortran ?       >       > I cannot get this to link. I can do the reverse, send a fortran       > character string from Gfortran to GCC.       >       > I do have the additional complication that I do not know the length of       > the fortran character string being sent from GCC to Gfortran at compile       > time, only run time. So that is a character*(*) string.       >       > I am not using the ISO C binding.              As Thomas as indicated, ISO C binding was introduced into the       Fortran standard to address your needs. But, if you want to       go old school with gcc/gfortran, then              % cat aa.c       #include |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca