4 static int get_win_size (int fd
, struct winsize
*win
)
6 int err
= ioctl (fd
, TIOCGWINSZ
, (char *) win
);
12 if(!get_win_size(1, &win
)) puts("Chyba!");
13 printf("%d %d :-)\n", win
.ws_row
, win
.ws_col
);
This page took 0.238359 seconds and 4 git commands to generate.