From cbd21e1da0d763225e7ea3594d4e6d8e96863790 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 30 May 2023 23:05:30 +0200 Subject: Added hash-based approach --- inc/lib/list.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 inc/lib/list.h (limited to 'inc/lib/list.h') diff --git a/inc/lib/list.h b/inc/lib/list.h new file mode 100644 index 0000000..b57d85b --- /dev/null +++ b/inc/lib/list.h @@ -0,0 +1,15 @@ +// Copyright (c) 2023, Marvin Borner +// SPDX-License-Identifier: MIT + +#ifndef SHARING_LIST_H +#define SHARING_LIST_H + +struct list { + void *data; + struct list *next; +}; + +struct list *list_add(struct list *list, void *data); +void list_free(struct list *list); + +#endif -- cgit v1.2.3