#include <oskit/io/ttystream.h>OSKIT_COMDECL drain(oskit_ttystream_t *tty);
This method waits until any buffered output data that has been written to the stream is successfully transmitted. This method corresponds to the POSIX tcdrain function; see the POSIX standard for details.
- tty
- The TTY stream object to drain.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.