aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--date.c1
-rw-r--r--date.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/date.c b/date.c
index 82e7efc..bcec28c 100644
--- a/date.c
+++ b/date.c
@@ -2,6 +2,7 @@
#define _BSD_SOURCE
enum month {JAN=1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC} month;
+enum weekday {SUN=0, MON, TUE, WED, THU, FRI, SAT} weekday;
Date extract_date(char *str) {
Date ret;
diff --git a/date.h b/date.h
index c160395..271f3cc 100644
--- a/date.h
+++ b/date.h
@@ -3,11 +3,13 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <time.h>
typedef struct Date {
int day;
int month;
int year;
+ int weekday;
} Date;
Date extract_date(char *str);