Topic
1 reply Latest Post - ‏2013-05-26T05:21:20Z by ccw
Frank_O_Myers@IBM
Frank_O_Myers@IBM
12 Posts
ACCEPTED ANSWER

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

‏2013-04-02T18:03:48Z |
 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
  • ccw
    ccw
    7 Posts
    ACCEPTED ANSWER

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

    ‏2013-05-26T05:21:20Z  in response to Frank_O_Myers@IBM

    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.