comparison actions.c @ 48:f9fc4c4f9e3d 0.3

documented nodes in man page
author meillo@marmaro.de
date Sun, 02 Mar 2008 11:04:52 +0100
parents c31b5bb6d493
children 0870e261bf28
comparison
equal deleted inserted replaced
47:c31b5bb6d493 48:f9fc4c4f9e3d
72 return node->value; 72 return node->value;
73 } 73 }
74 74
75 75
76 unsigned char action_input(struct Node* node) { 76 unsigned char action_input(struct Node* node) {
77 /* reads a number which is treated as ASCII value */
78 int input; 77 int input;
79 printf("input: "); 78 printf("input: ");
80 scanf("%d", &input); 79 scanf("%d", &input);
81 input = input % 256; 80 input = input % 256;
82 insertLast(node, newNode("number", (char) input)); 81 insertLast(node, newNode("number", (char) input));
83
84 return 0; 82 return 0;
85 } 83 }
86 84
87 85
88 unsigned char action_times(struct Node* node) { 86 unsigned char action_times(struct Node* node) {