progs/C2a.c
changeset 216 38718062709a
parent 211 e6e160c7ea33
--- a/progs/C2a.c	Mon Oct 06 22:48:09 2014 +0100
+++ b/progs/C2a.c	Mon Oct 06 22:57:44 2014 +0100
@@ -1,7 +1,9 @@
+int i;
+char ch;  
+
 void get_line(char *dst) {
   char buffer[8];
-  int i = 0;
-  char ch;
+  i = 0;
   while ((ch = getchar()) != '\n') {
     buffer[i++] = ch;
   }