GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2810586
)
Added comment
author
Tomas Mudrunka
<tomas@mudrunka.cz>
Mon, 10 Nov 2014 13:25:39 +0000
(14:25 +0100)
committer
Tomas Mudrunka
<tomas@mudrunka.cz>
Mon, 10 Nov 2014 13:25:39 +0000
(14:25 +0100)
c/winsize.c
patch
|
blob
|
blame
|
history
diff --git
a/c/winsize.c
b/c/winsize.c
index 3fbb76e894747ec9214aa4706509fb11548125e8..e76de716f75ff95560c3bd091af537ebcba45ab5 100644
(file)
--- a/
c/winsize.c
+++ b/
c/winsize.c
@@
-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.