X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fcalloc.c;h=e7117580a7e3f8f8e7275c2593600d3433b38b98;hb=b1fc26afebd4d557ff89a44bc21767a8704c3809;hp=5450b978f07a83c92e7284d5856930792d61bea9;hpb=229d28866bf554e77928ccade55b06a7fdd47382;p=pdclib diff --git a/functions/stdlib/calloc.c b/functions/stdlib/calloc.c index 5450b97..e711758 100644 --- a/functions/stdlib/calloc.c +++ b/functions/stdlib/calloc.c @@ -1,7 +1,3 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* void * calloc( size_t, size_t ) This file is part of the Public Domain C Library (PDCLib). @@ -30,10 +26,9 @@ void * calloc( size_t nmemb, size_t size ) #ifdef TEST #include <_PDCLIB_test.h> -int main() +int main( void ) { char * s; - BEGIN_TESTS; TESTCASE( ( s = calloc( 3, 2 ) ) != NULL ); TESTCASE( s[0] == '\0' ); TESTCASE( s[5] == '\0' );