www.delorie.com/djgpp/doc/libc-2.01/libc_644.html   search  
Go to the first, previous, next, last section, table of contents.


tcgetattr

Syntax

#include <termios.h>

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

Description

This function gets termios structure from device fd and stores it in the structure termiosp. Note that the termios emulation handles console only.

Return Value

Zero on success, nonzero on failure.

Example

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


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997