Deallocates or frees a memory block that was allocated with malloc or calloc.
void free( void * pmem )
// This is a self contained sample program for the function free,
// To run the program, enter the following command in the Script window:
// When it runs, the following meassage will be printed:
// Allocated 100 bytes.
// Before freeing: The memory contains: "TEST"; Length = 4
// After freeing: The length of the string = 0
pstr = (char*)malloc(100);
printf("Allocated 100 bytes.\n");
printf("Before freeing: The memory contains: \"%s\"; Length = %d\n",pstr,strlen(pstr));
free(pstr); // Demonstrating free
printf("After freeing: The length of the string = %d\n",strlen(pstr));