-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvector.h
More file actions
19 lines (14 loc) · 793 Bytes
/
vector.h
File metadata and controls
19 lines (14 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __VECTOR_H__
#define __VECTOR_H__
/*-------------------------------------------------------------------------------------------------------------------------
.h file for user - contains functions for Vector struct.
-------------------------------------------------------------------------------------------------------------------------*/
typedef struct Vector Vector;
Vector* VectorCreate(int _initialize, int _extensioBlockSize);
void VectorDestroy(Vector* _Vector);
ADTErr VectorAdd(Vector* _Vector, int _item);
ADTErr VectorDelete(Vector* _Vector, int* _item);
ADTErr VectorGet(Vector* _Vector, size_t _index, int* _item);
ADTErr VectorSet(Vector* _Vector, size_t _index, int _item);
ADTErr VectorItemsNum(Vector* _Vector, int* _Num_Of_Item);
#endif /* __VECTOR_H__ */