SizeOfAllocBlock

Returns the size of a previously allocated memory block.

Library:LibC
Classification:NetWare OS
Service:NetWare Platform

Syntax

  #include <netware.h> 
   
  size_t   SizeOfAllocBlock (
     void   *addr);
  

Parameters

addr

(IN) Points to a memory block previously allocated by calling Alloc or AllocSleepOK.

Remarks

You should use SizeOfAllocBlock to return the size of a piece of memory allocated with Alloc or AllocSleepOK. You should not use it for memory allocated with standard C functions (malloc, realloc, or calloc) or for memory allocated by CLib. Use msize for these functions.

See Also