Malloc - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents