Nick Leonessa wrote:
> 
> I am trying to use the printf() function in my RPG program. I believe I set
> everything up correctly (compiles and runs), but I don't see the result of
> the printf function.
> 

Nick, the printf result isn't displayed until it gets an end-of-line
character.  It's coded as '\n' in C, but that's a single character
representing x'15'.

D newline        c           x'15'

   callp   printf('this is the message' + newline)

By the way, make sure you have at least one OPTIONS(*NOPASS) parameter
in your prototype even if you always want to pass all the parameters. 
Otherwise some of your parameters won't be passed correctly.


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.