next up previous contents [pdf] index

Next: Call Up: Convenience allocation programs (alloc.c) Previous: Output


sf_charalloc

Allocates the memory exactly like [sec:sf_alloc]sf_alloc but the size in this one is fixed which is the size of one character. Therefore sf_charalloc allocates the memory for n elements which must be of character type. Because the size is fixed there is just one input parameter which is the number of elements (i.e. characters). Output is a void pointer pointing to the block of memory allocated.



Subsections


2011-07-02