With jBASE 4.1 the DEFCE statement should be used, rather than theDEFC statement, for calling external C programs, which are pure ‘C’ code and do not use the jBASE library macro’s and functions.
For C functions that do not require jBASE functions use the DEFCE statement, however the passing arguments can only be of type INT, FLOAT and STRING.
DEFCE INT MYFUNC3(INT)
INT32 MYFUNC3(INT32 Count)
DEFCE INT cfunc( INT, FLOAT, VAR)
Var1 = cfunc( A, 45, B)
cfunc( 34, C, J)
You can call standard UNIX functions directly by declaring them with the DEFC statement according to their parameter requirements. You can only call them directly providing they return one of the type int or float/double or that the return type may be ignored.
DEFCE INT getpid()
CRT "Process id =":getpid()