Aspects


vs


Malloc

The malloc function performs dynamic memory allocation in C and is part of the standard library

Memset

Memset is a C standard library function that sets the first N bytes of the block of memory to the specified value (interpreted as an unsigned char)