baudrate Subroutine

Purpose

Gets the terminal baud rate.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>

int baudrate(void)

Description

The baudrate subroutine extracts the output speed of the terminal in bits per second.

Return Values

The baudrate subroutine returns the output speed of the terminal.

Examples

To query the baud rate and place the value in the user-defined integer variable BaudRate, enter:

BaudRate = baudrate();