[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


vec_calloc

Clears and allocates memory on a 16 bit alignment.

Compatibility:

This function is compatible with the following targets:

ANSI
BeOS
EMB/RTOS
Mac OS
Palm OS
Win32

Altivec

Prototype:
void *	vec_calloc(size_t nmemb, size_t size);
Parameters:

Parameters for this facility are:

nmemb  
size_t  
Number of elements  
size  
size_t  
The size of the elements  

Remarks:

The vec_calloc() function allocates contiguous space for nmemb elements of size. The space is initialized with zeroes.

Return:

vec_calloc() returns a pointer to the first byte of the memory area allocated. vec_calloc() returns a null pointer (NULL) if no space could be allocated.

See Also:

"calloc"

"vec_free"

"vec_malloc"

"vec_realloc"


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000