Posté par Zylabon .
En réponse au journal realloc.
Évalué à 6.
realloc() changes the size of the memory block pointed to by ptr to size bytes. The contents will be unchanged to the minimum of the old and new sizes; newly allocated memory will be uninitialized. If ptr is NULL, then the call is equivalent to malloc(size), for all values of size; if size is equal to zero, and ptr is not NULL, then the call is equivalent to free(ptr). Unless ptr is NULL, it must have been returned by an earlier call to malloc(), calloc() or realloc(). If the area pointed to was moved, a free(ptr) is done.
[^] # Re: Rapport avec la conso mémoire.
Posté par Zylabon . En réponse au journal realloc. Évalué à 6.
Please do not feed the trolls