This commit is contained in:
Lukian 2023-11-12 14:01:37 +01:00
commit 244151ff0e
4 changed files with 54 additions and 0 deletions

18
conf.c Normal file
View file

@ -0,0 +1,18 @@
#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);
}