Renamed _calloc() to zalloc(), ready to be used as a standalone function.

This commit is contained in:
Michael Brown
2007-06-11 21:36:10 +01:00
parent 0316eaf85d
commit 058b200529
2 changed files with 7 additions and 4 deletions

View File

@@ -311,8 +311,11 @@ void free ( void *ptr ) {
* @ret ptr Allocated memory
*
* Allocate memory as per malloc(), and zero it.
*
* This function name is non-standard, but pretty intuitive.
* zalloc(size) is always equivalent to calloc(1,size)
*/
void * _calloc ( size_t size ) {
void * zalloc ( size_t size ) {
void *data;
data = malloc ( size );