8c2952457
김태훈
응용 프로그램 추가
|
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#ifndef _TLIST_API_HEADER_
#define _TLIST_API_HEADER_
#define MAXLISTSIZE 0x7FFFFFF
typedef struct
{
void **flist;
int fcount;
int fcapacity;
} tlist;
#ifdef __cplusplus
extern "C" {
#endif
void tlist_error ( tlist *that );
void tlist_error_index ( tlist *that, int index );
void tlist_grow ( tlist *that );
void tlist_setcapacity ( tlist *that, int newcapacity );
void tlist_setcount ( tlist *that, int newcount );
tlist *tlist_expand ( tlist *that );
int tlist_getcapacity ( tlist *that );
extern tlist* tlist_create ( void );
extern void tlist_free ( tlist *that );
extern int tlist_getcount ( tlist *that );
extern void* tlist_get ( tlist *that, int index );
extern void tlist_put ( tlist *that, int index, void *item );
extern int tlist_add ( tlist *that, void *item );
extern void tlist_clear ( tlist *that );
extern void tlist_delete ( tlist *that, int index );
extern void tlist_exchange ( tlist *that, int index1, int index2 );
extern void *tlist_first ( tlist *that );
extern int tlist_indexof ( tlist *that, void *item );
extern void tlist_insert ( tlist *that, int index, void *item );
extern void *tlist_last ( tlist *that );
extern void tlist_move ( tlist *that, int curindex, int newindex );
extern int tlist_remove ( tlist *that, void *item );
extern void tlist_pack ( tlist *that );
extern void tlist_sort ( tlist *that,int (*tlistsortcompare)(const void *, const void *) );
#ifdef __cplusplus
}
#endif
#endif
|