Next: , Previous: , Up: ascii non-zero   [Contents][Index]


7.1.5 Dynamic memory allocation for ASCII strings

Function: ccmem_ascii_t ccmem_ascii_malloc (cce_destination_t L, ccmem_allocator_t const * A, size_t len)

Use the given allocator to allocate enough memory to hold len characters and return a new struct instance referencing the memory. If an error occurs: raise an exception by performing a non–local exit to L.

Function: ccmem_ascii_t ccmem_ascii_realloc (cce_destination_t L, ccmem_allocator_t const * A, ccmem_ascii_t S, size_t newlen)

Use the given allocator to reallocate the memory referenced by S to a new size. Return a new struct instance referencing the reallocated memory. If an error occurs: raise an exception by performing a non–local exit to L.

Function: void ccmem_ascii_free (ccmem_allocator_t const * A, ccmem_ascii_t S)

Use the given allocator to release the memory referenced by S.


Next: , Previous: , Up: ascii non-zero   [Contents][Index]

This document describes version 0.2.2-devel.3 of CCMemory.