modified: src/llist.c

modified:   src/planner.c
	modified:   src/planner.h
	modified:   src/test.c
	new file:   test.c
This commit is contained in:
simon committed 2024-12-11 13:41:31 +01:00
1 parent f559d2a8bf
commit a504f3cb03
5 files changed
+40 -8

No files matched your search

+3
View File
@@ -4,6 +4,9 @@
/* create new linked list
* use llistFree after use
* retturns NULL on failure
* otherwise newNode with data as content and cmpFN to compare data
* only use to initialize
* To insert into list use llistAppend
*/
llist *llistNew(void *data, int (*cmpFN)(void *a, void *b)) {
llist *r = (llist *)malloc(sizeof(llist));