Added comment
authorTomas Mudrunka <tomas@mudrunka.cz>
Mon, 10 Nov 2014 13:25:39 +0000 (14:25 +0100)
committerTomas Mudrunka <tomas@mudrunka.cz>
Mon, 10 Nov 2014 13:25:39 +0000 (14:25 +0100)
c/winsize.c

index 3fbb76e894747ec9214aa4706509fb11548125e8..e76de716f75ff95560c3bd091af537ebcba45ab5 100644 (file)
@@ -1,3 +1,7 @@
+/*
+ * Prints size of terminal window in characters
+ */
+
 #include <stdio.h>
 #include <sys/ioctl.h>
 
@@ -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);
 }
This page took 0.191132 seconds and 4 git commands to generate.