- Subject: Re: S-Lang stdin / stdout
- From: "John E. Davis" <davis>
- Date: Thu, 16 Nov 2000 12:03:47 -0500
Francois Guimond <fguimond@xxxxxxxxxx> wrote:
>For me it mean that we can redirect message() output without modifying the
>original library.
>How can we do it?
>Can we redirect stdout to a function?
>Would this enable the Traceback to be redirected?
Use something along the lines of:
static void message_hook (char *fmt, va_list ap)
{
vfprintf (stdout, fmt, ap);
}
SLang_VMessage_Hook = message_hook;
--John
[2000 date index]
[2000 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]