StudyPlanner/src/db.c

22 lines
404 B
C
Raw Normal View History

/*
* INPUT: query for previous state
* linked list of subjects to store
*
* OUTPUT:
* linked list of subjects from file
* OK
*
*
*/
2024-12-10 17:42:45 +01:00
#include "planner.h"
#include <stdio.h>
2024-12-10 17:42:45 +01:00
// serialize struct test format
const char format[] = "{%s = {%lu, %lu, %d, %lu}\n";
int serialize(Task *s) {
printf(format, s->name, s->created, s->deadline, s->priority, s->spare);
return 0;
2024-12-10 17:42:45 +01:00
}