Newer
Older
tree-os / src / include / list.h
@lukas lukas on 1 Jan 2022 311 bytes code cleanup: lists
#ifndef LIST_H
#define LIST_H

#define NULL (void *)0

typedef struct ListElement {
    struct ListElement *next;
    void *data;
} ListElement;

extern void listAdd(ListElement **list, void *data);
extern void listAddSet(ListElement **list, void *data);

extern void *popBeginning(ListElement **list);

#endif