TutSetOutFlushFunc set the function to use for TutOutFlush
flush_func
function to be used by TutOutFlush
None
None
TutSetOutFlushFunc allows you to specify a function that is used by TutOutFlush to display and flush output, instead of the default function. This makes it possible to set up output data to go to a different place, or perform pre-processing before displaying the output.
None
TutGetOutFlushFunc, TutOutFlush
This example pre-processes output before displaying it:
static void flush_func(format_str, arg_list)
T_STR format_str;
va_list arg_list;
{
printf ("In custom flush function.\n");
vprintf (format_str, arg_list);
fflush (stdout);
} /* flush_func */
.
.
.
TutSetOutFlushFunc(flush_func);
TutOutFlush("test string\n");
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |