+/*
+ * Prints size of terminal window in characters
+ */
+
#include <stdio.h>
#include <sys/ioctl.h>
int main(void) {
struct winsize win;
- if(!get_win_size(1, &win)) puts("Chyba!");
+ if(!get_win_size(1, &win)) puts("Error!");
printf("%d %d :-)\n", win.ws_row, win.ws_col);
}