Our oh-so-complex output stream

Previous: The command stack and how to load it ] [ Top: wftk core index ] [ Next: Interpreting command streams ]

The output stream for this incarnation of wftk-core is simply a list of lines. The first character of each line tells what it does: The simplest way of doing this, of course, is with a nice little call to vprintf. The output stream is always on stdout.
 
void output (char type, const char *format, ...)
{
   va_list args;
   va_start (args, format);
   printf ("%c ", type);
   vprintf (format, args);
   va_end (args);
   printf ("\n");
}
Previous: The command stack and how to load it ] [ Top: wftk core index ] [ Next: Interpreting command streams ]


This code and documentation are released under the terms of the GNU license. They are additionally copyright (c) 2000, Vivtek. All rights reserved except those explicitly granted under the terms of the GNU license.