- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathArrayList.h
More file actions
Latest commit
34 lines (21 loc) · 652 Bytes
/
Copy pathArrayList.h
File metadata and controls
34 lines (21 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef_ARRAY_LIST_H_
#define_ARRAY_LIST_H_
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedefstruct {
intsize;
intcount;
int*data;
} ArrayList;
ArrayList*ArrayCreate(intn);
voidArrayAppendFirst(ArrayList*list, intvalue);
voidArrayAppendLast(ArrayList*list, intvalue);
voidArrayAppend(ArrayList*list, intvalue, intindex);
voidArrayDelete(ArrayList*list, intindex);
voidArrayDeleteFirst(ArrayList*list);
voidArrayDeleteLast(ArrayList*list);
voidArrayPrint(ArrayList*list);
voidArrayFree(ArrayList*list);
char*ArrayToString(ArrayList*list);
#endif