|
On Mon, 2005-08-15 at 18:44 -0700, James H H Lampert wrote:
> I understand that it's possible to do so, and I could
> certainly use that right now, to help me diagnose a weird
> problem with a mixed-language program.
>
> --
> JHHL
Simplify it greatly. I created a C module like so:
#include <stdio.h>
extern cprint(char *str) {
printf("%s\n", str);
}
And reference it from RPG:
* use the c printf routine, but simplified so rpg can call it.
D cprint pr extproc('cprint')
D str * value options(*string)
C callp cprint('Press enter to continue')
Regards,
Rich
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.