next up previous contents [pdf] index

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


sf_alloc

Checks whether the requested size for memory allocation is valid and if so it returns a pointer of void type, pointing to the allocated memory block. It takes the 'number of elements' and 'size of one element' as input arguments. Both arguments have to be of the of type size_t.



Subsections


2011-07-02