malloc finction of c code example
Example 1: free in c
the C library function void free(void *ptr)
deallocates the memory previously allocated by a call to calloc, malloc, or realloc.
Example 2: how to use malloc in c
ptr = (cast-type*) malloc(byte-size)