X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=c%2Fwinsize.c;h=e76de716f75ff95560c3bd091af537ebcba45ab5;hb=3b8f487aed778edba3d8cffe5bdad8e56470c84a;hp=3fbb76e894747ec9214aa4706509fb11548125e8;hpb=28105868d7236ee5805a225c0a4c84b57cdcd94c;p=mirrors%2FPrograms.git diff --git a/c/winsize.c b/c/winsize.c index 3fbb76e..e76de71 100644 --- a/c/winsize.c +++ b/c/winsize.c @@ -1,3 +1,7 @@ +/* + * Prints size of terminal window in characters + */ + #include #include @@ -8,6 +12,6 @@ static int get_win_size (int fd, struct winsize *win) 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); }