library_malloc

Allocates a block of memory.

Library:LibC
Service:Library

Syntax

  #include <library.h> 
   
  void *library_malloc (
     void    *handle, 
     size_t   size);
  

Parameters

handle

(IN) Points to the handle for the NLM.

size

(IN) Specifies the size (in bytes) of the memory block.

Return Values

If successful, returns a pointer to the start of the newly allocated memory. Otherwise, returns NULL if insufficient memory is available or if the requested size is 0.

Remarks

Memory allocation is not limited to 64 KB. The size parameter is 32 bits.

See Also