Updated: April 19, 2023 |
Get the size of a character device
#include <termios.h> int tcgetsize( int filedes, int* prows, int* pcols );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
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 |