I've been looking for doc on how to do this.... It seems I need to call __cinit to set up a C environment, then I can call sprintf and finally __cterm to terminate the C environment....
Sounds simple enough but I can't find what the parameter list looks like for those calls... Do I actually LOAD/DELETE those module names? I thought module names had to start with letter or national only. I don't want to write the whole thing in C, and use the occasional assembler macro, I have an assembler program and want to use sprintf to create a string of text with various substitutions in it. Once I have it all done I'm happy to share what I did... Cheers On Thursday, March 13, 2014, Tony Harminc <[email protected]> wrote: > On 13 March 2014 14:53, Donald Russell <[email protected]<javascript:;>> > wrote: > > Holly Smokes! Metal C looks perfect.... THANKS! :-) I just need sprintf > features.... > > Please keep us posted with your results. I haven't actually tried it, > but I've thought about it a few times - enough to look at the calling > and environment conventions. They look pretty easy to meet, but stack > space requirements are large in comparison to typical assembler > programs. If you're calling only sprintf you could presumably reuse or > otherwise share the "stack", i.e. what you pass to the function > wouldn't have to be an actual stack that your program linkage > conventions use. > > Tony H. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] <javascript:;> with the message: > INFO IBM-MAIN > -- Sent from iPhone Gmail Mobile ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
