Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > DynArray
comparison DynArray.h @ 3:8473c52c6f0e
Changed name from Vector to DynArray
| author | Me |
|---|---|
| date | Sun, 12 Sep 2010 12:10:25 -0700 |
| parents | |
| children | f35e64d7a42b |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 1:b3bcd3fe65ec |
|---|---|
| 1 /* | |
| 2 * File: Vector.h | |
| 3 * Author: Me | |
| 4 * | |
| 5 * Created on May 14, 2010, 3:08 PM | |
| 6 */ | |
| 7 | |
| 8 #ifndef _VECTOR_H | |
| 9 #define _VECTOR_H | |
| 10 | |
| 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; | |
| 19 | |
| 20 Vector *createVect ( int32 initialSizeOfArray ); | |
| 21 Vector *increaseSizeOfVect( Vector *vect ); | |
| 22 bool8 addToVect ( void *ptrToAdd, Vector *vect ); | |
| 23 bool8 removeLastInVect ( Vector *vect ); | |
| 24 | |
| 25 | |
| 26 #endif /* _VECTOR_H */ | |
| 27 |
