aboutsummaryrefslogtreecommitdiff
path: root/linked_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'linked_list.h')
-rw-r--r--linked_list.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/linked_list.h b/linked_list.h
index d1354e02..90a110bf 100644
--- a/linked_list.h
+++ b/linked_list.h
@@ -25,10 +25,11 @@ typedef struct {
} LLIST(TYPE);
INIT_F ( LLIST(TYPE) );
-FREE_F( LLIST(TYPE) );
+FREE_F ( LLIST(TYPE) );
INIT_F ( LINK(TYPE) );
INIT_F ( LINK(TYPE), TYPE* val );
+FREE_F ( LINK(TYPE) );
int LLIST_CONS(TYPE) ( LLIST(TYPE)* lst, TYPE* val);
@@ -36,4 +37,7 @@ int DEEP_COPY(LLIST(TYPE)) ( LLIST(TYPE)* dest, LLIST(TYPE)* src );
int APPEND(LLIST(TYPE)) ( LLIST(TYPE)* dest, LLIST(TYPE)* new );
+int SIZE(LLIST(TYPE)) ( LLIST(TYPE)* llist );
+int EMPTY(LLIST(TYPE)) ( LLIST(TYPE)* llist );
+
#endif /* TYPE */