Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > DynArray
view DynArray.h @ 3:8473c52c6f0e
Changed name from Vector to DynArray
| author | Me |
|---|---|
| date | Sun, 12 Sep 2010 12:10:25 -0700 |
| parents | |
| children | f35e64d7a42b |
line source
1 /*
2 * File: Vector.h
3 * Author: Me
4 *
5 * Created on May 14, 2010, 3:08 PM
6 */
8 #ifndef _VECTOR_H
9 #define _VECTOR_H
11 //Doing one special cheat -- hiding a back-ptr in front of array
12 typedef struct
13 {
14 void **arrayOfPtrs;
15 int numPtrsInArray;
16 int sizeOfArray;
17 }
18 Vector;
20 Vector *createVect ( int32 initialSizeOfArray );
21 Vector *increaseSizeOfVect( Vector *vect );
22 bool8 addToVect ( void *ptrToAdd, Vector *vect );
23 bool8 removeLastInVect ( Vector *vect );
26 #endif /* _VECTOR_H */
