Re: PL/I and C (was Re: Simple (?) C question)

2017-06-21 Thread Bernd Oppolzer
rame Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Bernd Oppolzer <bernd.oppol...@t-online.de> Sent: Wednesday, June 21, 2017 2:04 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: PL/I and C (was Re: Simple (?) C question) Hi Frank, 1.) yes, the C area acquired by ma

Re: PL/I and C (was Re: Simple (?) C question)

2017-06-21 Thread Frank Swarbrick
rd. Frank From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Bernd Oppolzer <bernd.oppol...@t-online.de> Sent: Wednesday, June 21, 2017 2:04 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: PL/I and C (was Re: Simple (?) C question) Hi Frank, 1.) yes, the C area a

Re: PL/I and C (was Re: Simple (?) C question)

2017-06-21 Thread Bernd Oppolzer
Hi Frank, 1.) yes, the C area acquired by malloc must be freed by someone 2.) unfortunately, the PL/1 FREE statement cannot do it, because, as I recently observed while checking some PL/1 modules for storage leaks, PL/1 stores its heap areas (allocated by PL/1 ALLOC / FREE) in the LE ANYWHERE

PL/I and C (was Re: Simple (?) C question)

2017-06-21 Thread Frank Swarbrick
I know we have some PL/I experts here, and I can't seem to subscribe to the PL/I listserv, so I'll ask here. I am not a PL/I programmer, but I've studied it to some degree. I believe the following is a valid PL/I program that would invoke the C language get_static_string() function (as well