StudyPlanner/src/db.c

21 lines
387 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
const char format[] = "{%s = {%lu, %lu, %d}\n"; //
int serialize(Subject *s) {
printf(format, s->name, s->created, s->deadline, s->priority);
return 0;
2024-12-10 17:42:45 +01:00
}