Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include "date.h"
- int main(void){
- Date *p_date;
- Date **pp_date = &p_date;
- int day=0;
- int month=0;
- int year=0;
- scanf("%d%d%d", &day, &month, &year);
- if(new_date(day,month,year, pp_next_date) == -1){
- (void)printf("ERROR\n");
- return 255;
- }
- printf("%p %p\n", *pp_date, pp_date);
- free(*pp_date);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement