Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
Loading...
Searching...
No Matches
list.h
1
#ifndef __LIST__
2
#define __LIST__
3
4
#define L List_T
5
typedef
struct
L
*
L
;
6
7
struct
L
8
{
9
void
*val;
10
L
next
;
11
};
12
13
extern
L
List_init(
void
);
14
extern
L
List_push(
L
list
,
void
*val);
15
extern
int
List_length(
L
list
);
16
extern
void
**List_toArray(
L
list
);
17
extern
L
List_append(
L
list
,
L
tail);
18
extern
L
List_list(
L
list
,
void
*val, ...);
19
/* TODO */
20
extern
L
List_copy(
L
list
);
21
extern
int
List_pop(
L
*
list
);
22
23
#undef L
24
#endif
L
Definition
list.h:8
list
Doubly linked list struct.
Definition
doubly_linked_list.c:24
next
int next(Vector *vec)
This function gets the next item from the Vector each time it's called.
Definition
vector.c:102
data_structures
list
list.h
Generated by
1.9.8