After power on, #include <inttypes.h>change:
scanf("%d",&(time->hours));
:
scanf("%" SCNu8, &(time->hours));
in all your scanf so that you read for uint8_t instead of int.
, , , %d, int, 32. , time->hours, "" .
, - :
Georgioss-MacBook-Pro:~ gsamaras$ gcc -Wall main.c
main.c:32:16: warning: format specifies type 'int *' but the argument has type
'uint8_t *' (aka 'unsigned char *') [-Wformat]
scanf("%d",&(time->hours));
~~ ^~~~~~~~~~~~~~
%s
main.c:34:16: warning: format specifies type 'int *' but the argument has type
'uint8_t *' (aka 'unsigned char *') [-Wformat]
scanf("%d",&(time->minutes));
~~ ^~~~~~~~~~~~~~~~
%s
main.c:40:16: warning: format specifies type 'int *' but the argument has type
'uint8_t *' (aka 'unsigned char *') [-Wformat]
scanf("%d",&(date->month));
~~ ^~~~~~~~~~~~~~
%s
3 warnings generated.
Wall , .