monmalloc module).
More...Functions | |
| void * | secureMalloc (size_t size) |
| void * | secureCalloc (size_t num, size_t size) |
| void * | secureRealloc (void *memblock, size_t size) |
| void | secureXFree (void *memblock) |
monmalloc module).
SlpTK Library 0.6.0
<securemalloc.h> Antonin Merçay (revision on 19.11.2004)
| void* secureCalloc | ( | size_t | num, | |
| size_t | size | |||
| ) |
Allocates an array in memory with elements initialized to 0 (redefine the standard calloc function). An error message is printed and the execution stopped if the allocation fails.
| [in] | num | The number of elements |
| [in] | size | The length in bytes of each element |
moncalloc | void* secureMalloc | ( | size_t | size | ) |
Allocates memory blocks (redefine the standard malloc function). An error message is printed and the execution stopped if the allocation fails.
| [in] | size | The size of the block to allocate in bytes |
monmalloc | void* secureRealloc | ( | void * | memblock, | |
| size_t | size | |||
| ) |
Reallocate memory blocks (redefine the standard realloc function). An error message is printed and the execution stopped if the reallocation fails.
| [in] | memblock | The pointer to previously allocated memory block |
| [in] | size | The new block size in bytes |
monrealloc | void secureXFree | ( | void * | memblock | ) |
Deallocates or frees a memory block (eXtended redefinition of the standard free function). After the memory release, the pointer on the previonsly allocated block is set to null.
| [in] | memblock | The pointer on the allocated memory block to be freed |
monfree
1.4.7