sds_regfunc

int sds_regfunc (int (*function) (void), int funcode);


Register an external function.


You can register any function that is in your SDS application but outside of main. This allows you to call it directly, without going through the dispatch loop. To be used in this way, the function must not require any arguments (be of type "(void)" ), and must return an int.

The argument int (*function) (void) is the name of the function just as in the code, and not necessarily the same as the name you specified when you defined the function using sds_defun.

The argument funcode is the code number you specified for the function in sds_defun.

This function returns RTNORM or RTERROR.

Example

sds_defun("C:MYCOMMAND" ,6);

sds_regfunc(MYCMDFUNC ,6);

Tell me about...

Programming Overview of SDS™ (Solutions Development System™)

sds_regapp