StudyPlanner/src/test.c

30 lines
554 B
C
Raw Normal View History

#include "config.h"
#include "db.h"
#include "iCal.h"
#include "planner.h" // for subject and event structs
#include "ui.h"
#include <stdio.h>
int main() {
time_t now = time(NULL);
Subject t1 = {.name = "LinAlg",
.created = now,
.deadline = now + days(5),
.priority = 3};
Subject t2 = {
.name = "Phys", .created = now, .deadline = now + days(2), .priority = 7};
// create plan
// planner([t1,t2])
//
printf("%s\n", ctime(&now));
serialize(&t1);
serialize(&t2);
return 0;
}