modified: src/db.c
modified: src/db.h modified: src/planner.c modified: src/planner.h modified: src/test.c
This commit is contained in:
1 parent
b7fab77c62
commit
33cd1e87e3
5 files changed
+72
-18
No files matched your search
+5
-6
@@ -4,17 +4,15 @@
|
||||
#include "planner.h" // for subject and event structs
|
||||
#include "ui.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main() {
|
||||
|
||||
time_t now = time(NULL);
|
||||
|
||||
Subject t1 = {.name = "LinAlg",
|
||||
.created = now,
|
||||
.deadline = now + days(5),
|
||||
.priority = 3};
|
||||
Task *t1 = newTask("LinAlg", now, now + days(5), 3, 0);
|
||||
|
||||
Subject t2 = {
|
||||
Task t2 = {
|
||||
.name = "Phys", .created = now, .deadline = now + days(2), .priority = 7};
|
||||
|
||||
// create plan
|
||||
@@ -22,8 +20,9 @@ int main() {
|
||||
//
|
||||
printf("%s\n", ctime(&now));
|
||||
|
||||
serialize(&t1);
|
||||
serialize(t1);
|
||||
serialize(&t2);
|
||||
free(t1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user