I have the following code
//Point.h #define WIDTH 8 #define HEIGHT 8 typedef struct Point { char x; char y; } Point; //Board.c #include
Hummm... isn't your char unsigned by default? In that case the range would be 0-255, which means your >=0 comparison would be always true