21 lines
421 B
C
21 lines
421 B
C
#define NUMBERPAIR 11 //one numberpair has 11 chars (direction x)
|
|
#define COLONSPACE 5
|
|
|
|
typedef struct {
|
|
int centerx;
|
|
int centery;
|
|
int maxy;
|
|
int maxx;
|
|
} state;
|
|
|
|
|
|
|
|
|
|
/* Function prototypes */
|
|
void quitProgram(void);
|
|
void initState(state *s);
|
|
void drawNumber(int starty, int startx, int num);
|
|
void drawTime(state *s, int hour, int min, int sec);
|
|
void drawColon(int starty, int startx);
|
|
void draw(state *s);
|