mediaLib Library Functions mlib_malloc(3MLIB)
NAME
mlib_malloc - allocate a block of bytes
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
void *mlib_malloc(size_t size);
DESCRIPTION
The mlib_malloc() function allocates size bytes on a 16-byte
aligned boundary and returns a pointer to the allocated block. This function is equivalent to memalign(16, size).PARAMETERS
The function takes the following arguments: size Size of the block in bytes.RETURN VALUES
The function returns a pointer to the allocated block if successful. Otherwise it returns a null pointer.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
mlib_free(3MLIB), mlib_realloc(3MLIB), malloc(3C), attri-
butes(5)SunOS 5.11 Last change: 12 Sep 2007 1