The acu_register_sub() function allows you to register a subroutine in your C main program.
Usage
typedef int (*ACU_SUB_FUNC) (int argc, char **argv); ACU_SUB_FUNC *acu_register_sub( ACU_SUB_FUNC *pFunc );
See Calling COBOL subroutines that call C routines, for more information on using this function.
Return Values
This function returns the previously registered function, or NULL if no function was registered.