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

C Language Programming Library Reference Guide

stdlib.h - Memory Functions - malloc

Declaration: void *malloc(size_t size); Allocates the requested memory and returns a pointer to it. The requested size is size bytes. The value of the space is indeterminate.

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......