#include <sicstus/sicstus.h> typedef SP_stream * SP_UserStreamHook(void *user_data, int which); SP_UserStreamHook * SP_set_user_stream_hook(SP_UserStreamHook *hook, void *user_data);
Sets the user-stream hook to
Must be called before
It is called three times, one for each stream. The
argument indicates which stream it is called for. The value
which is one of:
Create stream for standard input.
Create stream for standard output.
Create stream for standard error.
The hook should return a standard SICStus text I/O stream, as described in Defining a New Stream.
An arbitrary pointer that will be passed to the
Hookable Standard Streams.