separate files and fix newline bug

This commit is contained in:
Zvonimir Rudinski
2023-12-16 17:12:25 +01:00
parent 9e0ff21192
commit dd7c5d0a1c
4 changed files with 43 additions and 31 deletions

15
todo.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef TODO_H
#define TODO_H
#include <stdbool.h>
#define MAX_TODO_TITLE_LENGTH 32
#define MAX_TODOS 10
typedef struct {
char title[MAX_TODO_TITLE_LENGTH];
bool completed;
} TodoItem;
TodoItem create_todo(const char *title);
void mark_todo(TodoItem *item, bool completed);
void print_todo(TodoItem *item);
#endif