1 #ifndef _PROJENT_LST_H
2 #define _PROJENT_LST_H
3
4
5 /*
6 * #include <stdlib.h>
7 */
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13
14
15 typedef struct lst_s {
16 int csz;
17 int tsz;
18 void **buf;
19 } lst_t;
20
21
22 void lst_create(lst_t *);
23 int lst_is_empty(lst_t *);
24 void lst_insert_head(lst_t *, void *);
25 void lst_insert_tail(lst_t *, void *);
26
27 int lst_remove(lst_t *, void *);
28 void *lst_at(lst_t *, int);
29 void *lst_replace_at(lst_t *, int, void *);
30 int lst_size(lst_t *);
31
32
33
34 #ifdef __cplusplus
35 }
36 #endif
37 #endif /* _PROJENT_LST_H */