PL/I for AIX

 View Only
Expand all | Collapse all

Can a C file be passed into PL/I? Can a PL/I file be passed into C?

  • 1.  Can a C file be passed into PL/I? Can a PL/I file be passed into C?

    Posted Tue April 02, 2013 02:04 PM

    Originally posted by: Frank_O_Myers@IBM


     Hi,
     
    I have a series of files that I read and update in PL/I package. I now must integrate this code with existing C application that also updates these files.
    Is there a way to convert an open C file descriptor to a PL/I file (and vise versa) so that the files may be passed and shared between PL/I and C?
     
    Frank


  • 2.  Re: Can a C file be passed into PL/I? Can a PL/I file be passed into C?

    Posted Sun May 26, 2013 01:21 AM

    Originally posted by: ccw


    You didn't say which platform, "C file descriptor" is just a structure pointer,  usually you can pass that to PL/I and PL/I can still call c library function to perform I/O.  The reverse is not true, PL/I library interface is not documented to be used from C directly.