Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef TASK_H
- #define TASK_H
- #include <stdio.h>
- #include "task_status.h"
- int task_static_id_counter = 1;
- typedef struct {
- char *text;
- int id;
- Task_Status status;
- } Task;
- Task task_create(char *text, Task_Status status) {
- Task new_task;
- new_task.text = text;
- new_task.status = status;
- new_task.id = task_static_id_counter++;
- return new_task;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement