SP_set_user_stream_hook() [preinit] #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 hook.
Must be called before SP_initialize().
which
argument indicates which stream it is called for. The value
of which is one of:
SP_STREAMHOOK_STDINSP_STREAMHOOK_STDOUTSP_STREAMHOOK_STDERRThe hook should return a standard SICStus text I/O stream, as
described in Defining a New Stream.
hook.