Listing 4 A safer Date type

/* date2.h */

/* Declare the incomplete Date type */
typedef struct Date Date;

Date *date_create(int, int, int);
char *date_format(const Date *, char *);
int date_compare(const Date *, const Date *);
void date_destroy(Date *):

/* End of File */