diff DynArray.h @ 2:ad8621ee5986

Chgd name to DynArray
author Me
date Thu, 02 Sep 2010 17:48:38 -0700
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/DynArray.h	Thu Sep 02 17:48:38 2010 -0700
     1.3 @@ -0,0 +1,29 @@
     1.4 +/* 
     1.5 + * File:   Vector.h
     1.6 + * Author: Me
     1.7 + *
     1.8 + * Created on May 14, 2010, 3:08 PM
     1.9 + */
    1.10 +
    1.11 +#ifndef _VECTOR_H
    1.12 +#define	_VECTOR_H
    1.13 +
    1.14 +#include "../VMS_primitive_data_types.h"
    1.15 +
    1.16 +//Doing one special cheat -- hiding a back-ptr in front of array
    1.17 +typedef struct
    1.18 + {
    1.19 +   void  **arrayOfPtrs;
    1.20 +   int     numPtrsInArray;
    1.21 +   int     sizeOfArray;
    1.22 + }
    1.23 +Vector;
    1.24 +
    1.25 +Vector *createVect        ( int32 initialSizeOfArray );
    1.26 +void    increaseSizeOfVect( Vector *vect );
    1.27 +bool8   addToVect         ( void *ptrToAdd, Vector *vect );
    1.28 +bool8   removeLastInVect  ( Vector *vect );
    1.29 +
    1.30 +
    1.31 +#endif	/* _VECTOR_H */
    1.32 +