TODOC

is_writeable_stream(stream)

See also