|
>> I don't want to work out all the mechanics right here but may later, but >something >> like >> >> C Eval PassString = StrPoint%("The string is %s and the number is >%i\n") + >> C StrPoint%(SomeString) + StrInt(SomeNumber) >> >> C CallP PrintF(PassString) > >Close, but no cigar. If you look at how printf works, you'll see that you >have to pass the format string as a separate argument. Not very close either. A pointer could be turned into a string, but the AS/400 isn't going to let you turn a string back into a valid pointer; so it wouldn't be able to be used. Ken Southern Wine and Spirits of Nevada, Inc. Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.