From 42b3971be7c95d9205d135cfc90b49669377b8e8 Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Mon, 10 Nov 2014 14:25:39 +0100 Subject: [PATCH] Added comment --- c/winsize.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.30.2