I recently presented arguments for and against using dynamic memory allocation in C and C++ programs. 1 I do agree that truly safety-critical systems should avoid using dynamic allocation because the ...
* @param elementNum: Number of elements, memory size is elementNum*elementSize * @param elementSize: Size of each array element (in bytes). * @retval Pointer to memory the caller can now use void ...