TOC PREV NEXT INDEX

ARRrealloc

Synopsis


void * ARRrealloc (void *array_pointer, int type,
size_t number_of_elements, NULL)

Description

Change the array specified by array_pointer to use the size and data type given the by number_of_elements and type arguments. Returns NULL and prints out a error message if the array is not being managed by the ARR package.

Arguments

array_pointer
The address of the array.
type
n integer code specifying the array's data type. AVS/Express provides the following symbolic constants, defined in <avs/dtype.h>:
Type
Meaning
DTYPE_CHAR
Character
DTYPE_BYTE
Byte
DTYPE_SHORT
Short integer
DTYPE_INT
Integer
DTYPE_FLOAT
Single-precision floating point
DTYPE_DOUBLE
Double-precision floating point
DTYPE_PTR
Pointer
DTYPE_STRING
Character string

number_of_elements
The new size of the array, in terms of number of elements.

Examples

none.

See Also

none.

TOC PREV NEXT INDEX