/* File: rec2.c Records and functions */ typedef struct tag { int hour ; int minute ; } time_t ; time_t add50(time_t when) { when.minute += 50 ; return when ; } main() { time_t start, stop ; printf("First Run ...\n") ; start.hour = 2 ; start.minute = 4 ; stop = add50(start) ; printf ("Start at %d:%02d, stop at %d:%02d\n", start.hour, start.minute, stop.hour, stop.minute) ; printf("Second Run ...\n") ; start.hour = 3 ; start.minute = 30 ; stop = add50(start) ; printf ("Start at %d:%02d, stop at %d:%02d\n", start.hour, start.minute, stop.hour, stop.minute) ; }