Memory management routines. These routines are equivalent to standard C routines but allows us to do additional checking and debugging. More...
#include <stdlib.h>
#include "cta_system.h"
Go to the source code of this file.
Functions | |
CTAEXPORT void | CTA_Free (void *ptr) |
Free memory that has been allocated with CTA_Malloc or CTA_Realloc. | |
CTAEXPORT void * | CTA_Malloc (size_t size) |
Allocates size bytes of memory and returns a pointer to the allocated memory. | |
CTAEXPORT void * | CTA_Realloc (void *ptr, size_t size) |
Changes the size of the allocated memory block pointed by ptr Values in ptr are copied to returned memoy block. |
Memory management routines. These routines are equivalent to standard C routines but allows us to do additional checking and debugging.
Definition in file cta_mem.h.
CTAEXPORT void CTA_Free | ( | void * | ptr | ) |
Free memory that has been allocated with CTA_Malloc or CTA_Realloc.
ptr | I pointer to memory block to deallocate |
CTAEXPORT void* CTA_Malloc | ( | size_t | size | ) |
Allocates size bytes of memory and returns a pointer to the allocated memory.
size | I number of bytes to allocate |
CTAEXPORT void* CTA_Realloc | ( | void * | ptr, | |
size_t | size | |||
) |
Changes the size of the allocated memory block pointed by ptr Values in ptr are copied to returned memoy block.
size | I pointer to memoryblock of which the size is changed | |
size | I number of bytes of returned memory block |