![]() |
![]() |
![]() |
![]() |
Get the size of a character device
#include <termios.h> int tcgetsize( int filedes, int* prows, int* pcols );
libc
The tcgetsize() function gets the size of the character device associated with filedes and stores the number of rows and columns in prows and pcols if they're not NULL.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |
![]() |