calloc.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
calloc.cThe libc implementation
Functions
callocAllocates nmemb consecutive blocks of size bytes, and zeroes the memory

Functions

calloc

void * calloc(size_t nmemb,
size_t size)

Allocates nmemb consecutive blocks of size bytes, and zeroes the memory

Returns a pointer to the allocated memory location.

Returns NULL if the memory could not be allocated.

void * calloc(size_t nmemb,
size_t size)
Allocates nmemb consecutive blocks of size bytes, and zeroes the memory