view DynArray.h @ 2:ad8621ee5986

Chgd name to DynArray
author Me
date Thu, 02 Sep 2010 17:48:38 -0700
parents
children
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 #include "../VMS_primitive_data_types.h"
13 //Doing one special cheat -- hiding a back-ptr in front of array
14 typedef struct
15 {
16 void **arrayOfPtrs;
17 int numPtrsInArray;
18 int sizeOfArray;
19 }
20 Vector;
22 Vector *createVect ( int32 initialSizeOfArray );
23 void increaseSizeOfVect( Vector *vect );
24 bool8 addToVect ( void *ptrToAdd, Vector *vect );
25 bool8 removeLastInVect ( Vector *vect );
28 #endif /* _VECTOR_H */