Logo Search packages:      
Sourcecode: dbtcp version File versions  Download package

my_array.h

/******************************************************************************
Definizioni per la gestione degli array dinamici
******************************************************************************/

#ifndef MY_DYN_ARRAY
#define MY_DYN_ARRAY

#include <define.h>

struct MY_ARRAY {
                  char  *dati;
                  uint  increment;
                  uint  elements;
                  uint  max_elements;
                  uint  size;
            };

/*-------------------------------------------- Funzioni esportate dal modulo */
int Init_DArray ( struct MY_ARRAY *array, uint size, uint dim_init, uint increment );
int Insert_DArray ( struct MY_ARRAY *array, char *element );
char *Alloc_DArray ( struct MY_ARRAY *array );
char *Pop_DArray ( struct MY_ARRAY *array );
int Set_DArray ( struct MY_ARRAY *array, char *element, int index );
int Get_DArray ( struct MY_ARRAY *array, char *element, int index );
int Delete_DArray ( struct MY_ARRAY *array );
void Purge_Array ( struct MY_ARRAY *array );

#endif

Generated by  Doxygen 1.6.0   Back to index