malloc
allocate memory
Synopsis
#include <stdlib.h>
void *malloc(size_t size);
Description
The
function returns a pointer to a block of memory of length
malloc
. The block of memory is uninitialized.
size
Error Conditions
The
function returns a null pointer if it is unable to allocate the
malloc
requested memory.
Example
#include <stdlib.h>
int *ptr;
ptr = (int *)malloc(10);
See Also
calloc, free,
realloc
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
C/C++ Run-Time Library
/* ptr points to an
/* array of length 10 */
*/
3-93
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers