summaryrefslogtreecommitdiff
path: root/src/termios/cfgetospeed.c
blob: 7ccab1f217136ab28516748fddfb333792c93544 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <termios.h>
#include "../_assert.h"

speed_t cfgetospeed(const struct termios *termios_p)
{
	ASSERT_NONNULL(termios_p);
	return termios_p->c_oflag & B38400;
}
/*
POSIX(1)
*/