cfgetospeed man page


This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.

cfgetospeed — get output baud rate


#include <termios.h>

speed_t cfgetospeed(const struct termios *termios_p);


The cfgetospeed() function shall extract the output baud rate from the termios structure to which the termios_p argument points.

This function shall return exactly the value in the termios data structure, without interpretation.

Return Value

Upon successful completion, cfgetospeed() shall return a value of type speed_t representing the output baud rate.


No errors are defined.

The following sections are informative.


Refer to cfgetispeed().

See Also

cfgetispeed(), cfsetispeed(), cfsetospeed(), tcgetattr()

The Base Definitions volume of POSIX.1‐2008, Chapter 11, General Terminal Interface, <termios.h>


2013 IEEE/The Open Group POSIX Programmer's Manual