18 lines
No EOL
354 B
C
18 lines
No EOL
354 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "conf.h"
|
|
|
|
ptDate newDate(int day, int month, int year) {
|
|
ptDate date = (ptDate) malloc(sizeof(ptDate));
|
|
|
|
date -> day = day;
|
|
date -> month = month;
|
|
date -> year = year;
|
|
|
|
return date;
|
|
}
|
|
|
|
void printDate(ptDate date) {
|
|
printf("%d/%d/%d\n", date -> day, date -> month, date -> year);
|
|
} |