void free(void *ptr);
The free() function frees the memory space pointed to by ptr, which must have been returned by a previous call to malloc(), calloc() or realloc(). Otherwise, or if free(ptr) has already been called before, undefined behavior occurs. If ptr is NULL, no operation is per‐formed.
I will answer any c language programming and syntax questions.
I have almost a decade of c programming experience.
I have a bachelor of science degree and several years of industry experience.