dynamicArray.h

A dynamically resizing array for general use. [詳細]

#include <stdlib.h>
#include <string.h>

ソースコードを見る。

構成

struct  DynamicArray
 A resizable array. [詳細]

型定義

typedef struct DynamicArray DynamicArray

関数

void * DynamicArrayInit (DynamicArray *v, int initialSize)
 Initializes an array with the supplied initial size.
void DynamicArrayDelete (DynamicArray *v)
 Frees memory allocated by the dynamic array.
void * DynamicArrayGet (DynamicArray *v, int index)
 Gets the entry at the supplied index.
void DynamicArraySet (DynamicArray *v, int index, void *item)
 Sets the entry to the supplied value.

説明

A dynamically resizing array for general use.


関数

static void * DynamicArrayDelete ( DynamicArray v  )  [inline]

Frees memory allocated by the dynamic array.

引数:
v the array to delete
static void * DynamicArrayGet ( DynamicArray v,
int  index 
) [inline]

Gets the entry at the supplied index.

引数:
v The array to get from.
index The index of the data to get.
戻り値:
a The data or NULL if out of range.
static void * DynamicArrayInit ( DynamicArray v,
int  initialSize 
) [inline]

Initializes an array with the supplied initial size.

引数:
v the array to initialize
initialSize the initial size to allocate
戻り値:
a pointer to the data (0 on error)
static void DynamicArraySet ( DynamicArray v,
int  index,
void *  item 
) [inline]

Sets the entry to the supplied value.

引数:
v The array to set
index The index of the data to set (array will be resized to fit the index).
item The data to set.
 全て クラス ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義
libndsに対してMon Apr 26 23:39:50 2010に生成されました。  doxygen 1.6.3