comparison actions.c @ 11:8a8da74530dd

deleted old commented code
author meillo@marmaro.de
date Sat, 09 Feb 2008 17:26:05 +0100
parents 0e15841ae111
children 15e11eea1c66
comparison
equal deleted inserted replaced
10:0e15841ae111 11:8a8da74530dd
70 return node->value; 70 return node->value;
71 } 71 }
72 72
73 73
74 unsigned char action_input(struct Node* node) { 74 unsigned char action_input(struct Node* node) {
75 /*
76 unsigned char input = (unsigned char) getchar();
77 getchar();
78 */
79
80 /* reads a number which is treated as ASCII value */ 75 /* reads a number which is treated as ASCII value */
81 int input; 76 int input;
82 scanf("%d", &input); 77 scanf("%d", &input);
83 input = input % 256; 78 input = input % 256;
84 insertLast(node, newNode("number", (char) input)); 79 insertLast(node, newNode("number", (char) input));