[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 2

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();

Related Information

The tcgetattr (tcgetattr Subroutine) subroutine.

Curses Overview for Programming in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

List of Curses Subroutines in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]