##### Synopsis

    #include <ctl_api.h>
    void ctl_memory_area_init(CTL_MEMORY_AREA_t *memory_area,
                              unsigned *memory,
                              unsigned block_size_in_words,
                              unsigned num_blocks);

##### Description

The function ctl_memory_area_init is given a pointer to the memory area to initialise in memory_area. The array that will be used to implement the memory area is pointed to by memory. The size of a memory block is given supplied in block_size_in_words and the number of block is supplied in num_blocks. Note that memory must point to a block of memory that is at least block_size_in_words * num_blocks words long.

##### Portability

ctl_memory_area_init is provided in every implementation of the CrossWorks tasking library.

###### See Also

Memory areas