calloc differs from malloc, as it clears the memory.
From the Mac OS X man page:
The calloc() function contiguously allocates enough space for count objects that are size bytes of memory each and returns a pointer to the allocated memory. The allocated memory is filled with bytes of value zero.