ostream
class ¶The base output stream type is ‘ostream_t’.
It has the following methods:
void
ostream_write_mem (ostream_t stream, const void *data, size_t len)
¶Writes a sequence of bytes to a stream.
void
ostream_write_str (ostream_t stream, const char *string)
¶Writes a string’s contents to a stream.
ptrdiff_t
ostream_printf (ostream_t stream, const char *format, ...)
¶ptrdiff_t
ostream_vprintf (ostream_t stream, const char *format, va_list args)
¶Writes formatted output to a stream.
These functions return the size of formatted output, or a negative value in case of an error.
void
ostream_flush (ostream_t stream, ostream_flush_scope_t scope)
¶Brings buffered data to its destination.
void
ostream_free (ostream_t stream)
¶Closes and frees a stream.