Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > DynArray
comparison Vector.h @ 0:b1f178ed41a3
initial add
| author | Me |
|---|---|
| date | Sat, 22 May 2010 19:51:49 -0700 |
| parents | |
| children | 2698781db812 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0: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 |
