Long time ago now but I think I had to avoid sprintf because it required __cinit and that in turn created a link to the calling TCB..
Cheers, Dave Griffiths z/OS Developer IBM United Kingdom Limited, Hursley Park, Winchester, SO21 2JN, UK From: John McKown <[email protected]> To: [email protected] Date: 08/03/2017 14:56 Subject: Re: Which C library functions imply dub? Sent by: IBM Mainframe Discussion List <[email protected]> On Wed, Mar 8, 2017 at 8:28 AM, David Griffiths1 < [email protected]> wrote: > I understood the original question to be how to avoid OMVS and you almost > certainly need OMVS for printf. For Metal C I wrote my own printf subset > that calls WTO - you at least have varargs. > Hum, I just use snprintf() to get the formatted string back into my program. I then "do whatever" using that string. This was what got me to writing LE enabled HLASM. > > Cheers, > > Dave Griffiths > z/OS Developer > IBM United Kingdom Limited, Hursley Park, Winchester, SO21 2JN, UK > > -- "Irrigation of the land with seawater desalinated by fusion power is ancient. It's called 'rain'." -- Michael McClary, in alt.fusion Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
