C++ Math Library Reference | ![]() |
Set the current print handling routine
C++ Prototype
void mwSetPrintHandler(mwOutputFunc f);
Arguments
f
Pointer to a function that takes a char *
argument and returns void
. The function displays the character string. mwOutputFunc
is defined as:
typedef void (*
mwOutputFunc)(const char *);
Description
mwSetPrintHandler
sets the print handling routine. The print handler is responsible for handling all "normal" (nonerror) output. You must call mwSetPrintHandler()
before calling other library routines. Otherwise the library uses the default print handler to display messages.
See Also
![]() | mwSetLibraryAllocFcns |