/** * @file DynamicIntArray.h * @author Sheng Di * @date April, 2016 * @brief Header file for Dynamic Int Array. * (C) 2016 by Mathematics and Computer Science (MCS), Argonne National Laboratory. * See COPYRIGHT in top-level directory. */#ifndef _DynamicIntArray_H#define _DynamicIntArray_H#ifdef __cplusplusextern"C"{#endif#include <stdio.h>typedefstructDynamicIntArray{unsignedchar*array;//char* (one byte) is enough, don't have to be int*size_tsize;size_tcapacity;}DynamicIntArray;voidnew_DIA(DynamicIntArray**dia,size_tcap);voidconvertDIAtoInts(DynamicIntArray*dia,unsignedchar**data);voidfree_DIA(DynamicIntArray*dia);intgetDIA_Data(DynamicIntArray*dia,size_tpos);voidaddDIA_Data(DynamicIntArray*dia,intvalue);#ifdef __cplusplus}#endif#endif /* ----- #ifndef _DynamicIntArray_H ----- */