delorie.com/djgpp/doc/libc/libc_808.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

tcgetattr

Syntax

 
#include <termios.h>

int tcgetattr (int fd, struct termios *termiosp);

Description

This function gets the parameters associated with the file/device referred to by the handle fd and stores them in the termios structure termiosp. See section Termios functions, for the full description of struct termios and its members.

Note that the termios emulation handles console only.

Return Value

Zero on success, nonzero on failure.

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001

Example

 
struct termios termiosbuf;
int rc = tcgetattr (0, &termiosbuf);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004