generated from Riley/Conan-C
Rename functions for consistency: change create_todolist to tdl_init and tdi_new to tdi_init
This commit is contained in:
parent
337714e540
commit
18f30fd963
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ typedef struct {
|
||||||
int count;
|
int count;
|
||||||
} todolist;
|
} todolist;
|
||||||
|
|
||||||
todolist *create_todolist() {
|
todolist *tdl_init() {
|
||||||
todolist *list = malloc(sizeof(todolist));
|
todolist *list = malloc(sizeof(todolist));
|
||||||
list->items = NULL;
|
list->items = NULL;
|
||||||
list->count = 0;
|
list->count = 0;
|
||||||
|
|
@ -41,7 +41,7 @@ void tdl_add_item(todolist *list, char *name, char *description, int priority, i
|
||||||
list->items[list->count].completed = completed;
|
list->items[list->count].completed = completed;
|
||||||
list->count++;
|
list->count++;
|
||||||
}
|
}
|
||||||
todoitem *tdi_new(char *name, char *description, int priority, int completed) {
|
todoitem *tdi_init(char *name, char *description, int priority, int completed) {
|
||||||
todoitem *item = malloc(sizeof(todoitem));
|
todoitem *item = malloc(sizeof(todoitem));
|
||||||
item->name = name;
|
item->name = name;
|
||||||
item->description = description;
|
item->description = description;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue