9 static int err_code = 0;
10 static char err_msg[1024];
int datetime_error(int code, char *msg)
record 'code' and 'msg' as error code/msg (in static variables) code==0 will clear the error (ie set ...
int datetime_error_code(void)
returns an error code
void datetime_clear_error(void)
clears error code and message
char * datetime_error_msg(void)
returns an error message