PSI sics-cvs-psi_pre-ansto

This commit is contained in:
2003-06-13 00:00:00 +00:00
committed by Douglas Clowes
parent 2e3ddfb6c6
commit 3ffd0d8af4
1099 changed files with 318432 additions and 0 deletions

31
sdynar.h Normal file
View File

@@ -0,0 +1,31 @@
/*---------------------------------------------------------------------------
D Y N A M I C A R R A Y
This file describes the interface to a dynamic array module for pointers.
This sort of array resizes dynamically.
Mark Koennecke, September 1997
copyright: see copyright.h
-----------------------------------------------------------------------------*/
#ifndef SICSDYNAR
#define SICSDYNAR
typedef struct __SDynar *pDynar;
/*-------------------------------------------------------------------------*/
pDynar CreateDynar(int iStart, int iEnd, int iGrain,
void (*DataFree)(void *pData));
void DeleteDynar(pDynar self);
/*------------------------------------------------------------------------*/
int DynarPut(pDynar self, int iIndex, void *pData);
int DynarPutCopy(pDynar self, int iIndex, void *pData, int iDataLen);
int DynarReplace(pDynar self, int iIndex, void *pData, int iDatLen);
int DynarGet(pDynar self, int iIndex, void **pData);
int DynarGetCopy(pDynar self, int iIndex, void *pData, int iDataLen);
#endif