From: solar Date: Mon, 6 Feb 2006 21:03:39 +0000 (+0000) Subject: Added comments. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=ab5e58e1ae393667ab26f537f5adfdaf130b7c1e;p=fw%2Fpdclib Added comments. git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@138 546481bc-9713-0410-bf18-d3337bbf4a3e --- diff --git a/functions/stdlib/calloc.c b/functions/stdlib/calloc.c index 1e568b4..5450b97 100644 --- a/functions/stdlib/calloc.c +++ b/functions/stdlib/calloc.c @@ -15,9 +15,11 @@ void * calloc( size_t nmemb, size_t size ) { + /* assign memory for nmemb elements of given size */ void * rc = malloc( nmemb * size ); if ( rc != NULL ) { + /* zero-initialize the memory */ memset( rc, 0, nmemb * size ); } return rc;