This is an optional step only for tty streams. A tty stream needs to register to its group for special tty service (see fli-ios-tty).
Finally the pointer to the created stream is returned to Prolog,
and converted to Prolog stream representation through stream_code/2
.
In our example, we use the filename of the stream
as the key to register into its group.
if (option->format == QP_DELIM_TTY) (void) QP_add_tty(&stream->qpinfo, filename); return &stream->qpinfo;