![]() ![]() |
|
CALLCThe CALLC statement is used to invoke user supplied C functions compiled and built into standard libraries.
COMMAND SYNTAXCALLC Cfunction{(argument{,...})} or CALLC @Variable{(argument {, argument ... })}
SYNTAX ELEMENTSCfunction must correspond to a valid C function name in an associated C source. argument must correspond to a valid variable name Variable must correspond to a valid variable name which contains the name of the C function to invoke.
NOTESThe indirect, '@', form of the statement expects the specified variable to contain the name of the 'C' function to be invoked. All arguments to be passed to and from the calling program to the 'C' function must be of type VAR and the 'C' function coded accordingly, the 'C' function should also be coded to return a result of type VAR. Refer to the jsystem.h header file and jBASE 'C' programming for more information on the jBASE VAR type. The 'C' functions should be coded in a separate source, then compiled and built into a shared library and made available to the calling program similar to subroutines
EXAMPLEMYB - Base source program in file BP
MYC.c - 'C' source program
|