X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fcalloc.c;h=d736065911e96aa1bced8dada0191092953737d3;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=5450b978f07a83c92e7284d5856930792d61bea9;hpb=229d28866bf554e77928ccade55b06a7fdd47382;p=pdclib diff --git a/functions/stdlib/calloc.c b/functions/stdlib/calloc.c index 5450b97..d736065 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). @@ -28,12 +24,12 @@ void * calloc( size_t nmemb, size_t size ) #endif #ifdef TEST -#include <_PDCLIB_test.h> -int main() +#include "_PDCLIB_test.h" + +int main( void ) { char * s; - BEGIN_TESTS; TESTCASE( ( s = calloc( 3, 2 ) ) != NULL ); TESTCASE( s[0] == '\0' ); TESTCASE( s[5] == '\0' );