Home > Electronics Tutorials > C Language Tutorial > stdlib.h - Memory Functions - calloc

C Language Programming Library Reference Guide

stdlib.h - Memory Functions - calloc

Declaration: void *calloc(size_t nitems, size_t size); Allocates the requested memory and returns a pointer to it. The requested size is nitems each size bytes long (total memory requested is nitems*size). The space is initialized to all zero bits.

On success a pointer to the requested space is returned. On failure a null pointer is returned

Note: To report broken links or to submit your projects, tutorials please email to Webmaster

Discover

     more......