fauman@cgl.ucsf.edu (Eric Fauman%Stroud) (11/20/87)
I am writing some C code now in which I need to use some fortran library routines. One routine has a dozen arguments; ints, floats, arrays, and strings. I can send and receive ints and floats perfectly well (passed by address, of course) and I can send strings also by putting the necessary information in a descriptor structure. However, when I try to get a string back, I get back garbage. The string pointer in the descriptor points off into space. What do I need to do to get back a string. To recap: I am passing a pointer to a descriptor. I had hoped the fortran would change the contents of the descriptor I had sent, and it does, but it changes it into something I can't interpret. I can't change the fortran code. I am dealing with passed parameters, not RETURNed values. Thanks in advance, Eric Fauman |Fauman@cgl.ucsf.edu University of California San Francisco Expires: Sender: Reply-To: fauman@cgl.ucsf.edu.UUCP (Eric Fauman%Stroud) Followup-To: Distribution: comp.lang.c Organization: UCSF Computer Graphics Lab Keywords:
mike@hpfclq.HP.COM (Mike McNelly) (11/25/87)
Sorry, but the questions you've asked deal with inherently implementation- dependent topics. Please state your situation. Mike McNelly hpfcla!mike