Get the size of a character device
#include <termios.h> int tcgetsize( int fildes, 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 fildes 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 |