edmiDefineOutputFunction

EdmiOutput edmiDefineOutputFunction(EdmiOutput pFunction);

Defines a user defined function that will be the EDMinterface main output function. This function defines the EDMinterface current output device. The prototype for such an user defined function is:

void myOutputFunction(char *stringToOutput); 

The effect of this operation will last until the calling application is terminated or until a new invocation of the edmiDefineOutputFunction function. The default EDMinterface current output device is the applications standard output device stdio.

Arguments


TypeNameComment
EdmiOutput

pFunction

Specifies the function that will be the EDMinterface main output function. This function will implicitly define the EDMinterface current output device.
Specifying <pFunction> = NULL will reset the EDMinterface current output device to the standard output device stdio.

Return Value


 

TypeComment
EdmiOutput

A value of type EdmiOutput that defines the current EDMinterface main output function at the invocation of this function, hence it is possible to reset the EDMinterface main output function to the old value after an invocation of the edmiDefineOutputFunction function.

Options


  

Example


 

EdmiOutput myOutputFunction, oldOutputFunction;
 ...
 oldOutputFunction = edmiDefineOutputFunction(myOutputFunction);
 . . .
 edmiDefineOutputFunction(oldOutputFunction); /* reset to old function */
 . . . 

 

See also

Filter by label

There are no items with the selected labels at this time.