...
| Code Block |
|---|
void * malloc(size_t size); void * calloc(size_t nmemb, size_t size); void * realloc(void *ptr, size_t size); void free(void *ptr); |
Â
The specific characteristics of these routines are based on the compiler used. With a few exceptions, this document only considers the general and compiler-independent attributes of these routines.
...
Set pointers to dynamically allocated memory to NULL after they are released
Adopt consistent guidelines for memory allocation and de-allocation
Rules
...