Converts between Prolog representation, Stream, and C representation, CStream, of a stream.
A valid Prolog stream.
SP_stream * pointer.
At least one argument must be ground.
stream_code/2 is used when there are input/output related operations
performed on the same stream in both Prolog code and foreign code.
The CStream value can be used as the stream argument to
any of the SP_* functions taking a stream argument.
Both Stream and CStream unbound.
Stream or CStream is not a stream type or CStream is not an integer type.
Stream is syntactically valid but does not name an open stream or CStream is of integer type but does not name a pointer to a stream.