From: Tomas Mudrunka Date: Mon, 10 Nov 2014 13:25:39 +0000 (+0100) Subject: Added comment X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=42b3971be7c95d9205d135cfc90b49669377b8e8;p=mirrors%2FPrograms.git Added comment --- 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); }