callfunc(3G) callfunc(3G)
callfunc - calls a function from within an object
void callfunc(fctn, nargs, arg1, arg2, ..., argn)
void (*fctn)();
long nargs, arg1, arg2, ..., argn;
fctn expects a pointer to a function.
nargs expects the number of arguments, excluding itself, that the
function pointed to by fctn is to be called with.
arg1, arg2, ..., argn
expect the arguments to the function pointed to by fctn.
callfunc is used to call an arbitrary function from within an object.
When callfunc executes in the object, the function call
(*fctn)(nargs, arg1, arg2, ..., argn) is made.
This routine does not function in the Distributed Graphics Library (DGL),
and we advise against its use in new development.
PPPPaaaaggggeeee 1111 [ Back ]
|