free.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
free.cThe libc implementation
Todo’s
Primitive placeholder.  Much room for improvement.
Functions
freeDeallocates a block of memory created by malloc calloc or realloc.

Todo’s

Primitive placeholder.  Much room for improvement.

Functions

free

void free(void *ptr)

Deallocates a block of memory created by malloc calloc or realloc. ptr references the allocated block

void free(void *ptr)
Deallocates a block of memory created by malloc calloc or realloc.
void * malloc(size_t size)
Allocates size bytes of memory
void * calloc(size_t nmemb,
size_t size)
Allocates nmemb consecutive blocks of size bytes, and zeroes the memory
void * realloc(void *ptr,
size_t size)
Attempts to resize the allocated block of memory given in ptr.