commit
This commit is contained in:
commit
244151ff0e
4 changed files with 54 additions and 0 deletions
18
conf.c
Normal file
18
conf.c
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue