first working version
[mopice.git] / greetings.c
diff --git a/greetings.c b/greetings.c
deleted file mode 100644 (file)
index 1df0d98..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <stdio.h>
-
-int main_old() {
-    int ret;
-    char val;
-    char *pos = "                                                                                                                                  *";
-    while ((ret = read(0, &val, 1)) > 0) {
-        // printf("%d\n", 64 + (val / 2));
-        printf("%s\n", &(pos[64+(val / 2)]));
-        fflush(stdout);
-    }
-    
-}
-
-int main() {
-    int ret, ival;
-    char val;
-    char *pos = "                                                                                                                                  *";
-    while ((ret = read(0, &val, 1)) > 0) {
-        val = val >> 1;
-        // fprintf(stdout, "%d\n", *(signed char *)(&ival));
-        // val = *(signed char *)(&ival);
-        // fprintf(stdout, "%s\n", &(pos[64+(val/2)]));
-        write(2,&val,1);
-        // fflush(stdout);
-    }
-    
-}