Jim Roland wrote:
It works beautifully, but you must include the definition in your procedures/functions section:
Procedure system ( parameters ); C; or Function system ( parameters ); C;
I don't remember the parameters for the system() function, but "man system" should tell you.
Yes, the man page says "char *" which is "CString" in GPC.
The C; at the end is important and the "system" as opposed to "System" or "SYSTEM" is important too.
Not really. The "C;" directive will transform all identifiers to lower case internally. I used "System" in the example I just posted, and this works, too. If one needs upper or mixed case C identifiers, one can use asmname like "procedure Foo; asmname 'bAr';" or whatever.