free()

Syntax:

 #include <stdlib.h>

Description:
The free() function deallocates the space pointed to by ptr, freeing it up for future use. ptr must have been used in a previous call to |malloc()|, |calloc()|, or |realloc()|.

Example:

typedef struct data_type {
  int age;
  char name[20];
} data;
    
data *willy;
willy = (data*) malloc( sizeof(willy) );
...
free( willy );

Related Topics:
calloc(), malloc(), realloc()

Read More
1 month ago
101
1 month ago
70
1 month ago
77

New Casinos
Download the latest version of Dragon Tiger online casino APK for Android! Enjoy safe, free gameplay and unleash your luck in this thrilling card game.
Explore Mascot Gaming's top online casinos and gaming slots! Discover exciting bonuses, thrilling casino games, and the best mascot gaming slots for 2024!
Best online casino games on Banger.casino! Play on mobile apps or desktop and win real money. ✓ Get your welcome bonus +125% UP TO €250 right now!

© Copyright 2024 | Elook.org