You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
188 B
C
17 lines
188 B
C
2 years ago
|
#include <ncurses.h>
|
||
|
|
||
|
int getmaxy(WINDOW* window) {
|
||
|
int y;
|
||
|
int x;
|
||
|
getmaxyx(window,y,x);
|
||
|
return y;
|
||
|
|
||
|
}
|
||
|
|
||
|
int getmaxx(WINDOW* window) {
|
||
|
int y;
|
||
|
int x;
|
||
|
getmaxyx(window,y,x);
|
||
|
return x;
|
||
|
}
|