Objective
Implement a function that allocates memory for an array of nmemb elements of size bytes each, sets every byte to zero, and returns the pointer (or NULL on failure).
Steps
$ calloc(4, sizeof(int)) // read back the 4 ints
0 0 0 0
$ calloc(SIZE_MAX, SIZE_MAX) // would overflow, print "null" on NULL
null
Expected files
Allowed functions
Allowed headers
Standard C library
Implements the contract of a function from the standard C library.

Objective
Implement a function that allocates memory for an array of nmemb elements of size bytes each, sets every byte to zero, and returns the pointer (or NULL on failure).
Steps
$ calloc(4, sizeof(int)) // read back the 4 ints
0 0 0 0
$ calloc(SIZE_MAX, SIZE_MAX) // would overflow, print "null" on NULL
null
Expected files
Allowed functions
Allowed headers
Standard C library
Implements the contract of a function from the standard C library.

Tests
Run the tests to grade your code