ASCOT5
Loading...
Searching...
No Matches
list.h
Go to the documentation of this file.
1
5#ifndef LIST_H
6#define LIST_H
7#include "offload_acc_omp.h"
8
16
17DECLARE_TARGET
19DECLARE_TARGET_END
20DECLARE_TARGET
21void list_int_free(list_int_node** list);
22DECLARE_TARGET_END
23DECLARE_TARGET
24void list_int_add(list_int_node* list, int data);
25DECLARE_TARGET_END
26DECLARE_TARGET
27int list_int_get(list_int_node* list, int index);
28DECLARE_TARGET_END
29DECLARE_TARGET
31DECLARE_TARGET_END
32
33#endif
DECLARE_TARGET_END DECLARE_TARGET void list_int_add(list_int_node *list, int data)
Add new node to the end of the chain.
Definition list.c:48
DECLARE_TARGET void list_int_create(list_int_node **list)
Create an empty list.
Definition list.c:16
DECLARE_TARGET_END DECLARE_TARGET int list_int_get(list_int_node *list, int index)
Retrieve the data stored in a list node.
Definition list.c:69
DECLARE_TARGET_END DECLARE_TARGET void list_int_free(list_int_node **list)
Deallocate this list and all lists it is linked to.
Definition list.c:28
DECLARE_TARGET_END DECLARE_TARGET int list_int_size(list_int_node *list)
Get list size.
Definition list.c:86
struct list_int_node list_int_node
Linked list node that stores int data.
Linked list node that stores int data.
Definition list.h:12
struct list_int_node * next
Definition list.h:13
int data
Definition list.h:14