1 #ifndef KMAP_H 2 #define KMAP_H 3 4 #include <stdio.h> 5 #include <string.h> 6 #include <stdlib.h> 7 8 9 #define LEFT_MOST 0 /*COLUMN 0*/ 10 #define RIGHT_MOST 3 /*COLUMN 3*/ 11 #define TOP_MOST 0 /*ROW 0*/ 12 #define LOWEST 3 /*ROW 3*/ 13 #define ACTIVE 0 14 #define INACTIVE 1 15 #define WANT_UPPER 0 16 #define WANT_LOWER 1 17 #define WANT_LEFT 0 18 #define WANT_RIGHT 1 19 #define FOUND 0 20 #define N_FOUND 1 21 #define HZNTL 0 22 #define VRTCL 1 23 #define LOWER 1 24 #define UPPER -1 25 #define RIGHT 1 26 #define LEFT -1 27 28 /*######################## Globels #########################*/ 29 extern int connection; 30 31 /*THIS IS THE STRUCTURE OF THE CELL OF KMAP*/ 32 33 struct cell 34 { 35 char value,real_value,cell_num; 36 struct cell *left,*right,*down,*up; 37 char col_string[3], row_string[3]; 38 }; 39 extern struct cell cell_array[4][4]; 40 41 struct output 42 { 43 char connection_output[6]; 44 char cell_num_string[10]; 45 int status; 46 }; 47 extern struct output out_array[20]; 48 49 extern char semi_final_out[70]; 50 extern char final_out[100]; 51 52 53 54 #endif 55