X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fmalloc.c;h=22718ee67e778439d964d99d834201e878525f1e;hb=e6fd9753e785702792a00236f86f257a22f5c794;hp=650d67f2edd77afd7d608c72e267575b9b9de7a0;hpb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;p=pdclib diff --git a/functions/stdlib/malloc.c b/functions/stdlib/malloc.c index 650d67f..22718ee 100644 --- a/functions/stdlib/malloc.c +++ b/functions/stdlib/malloc.c @@ -1,7 +1,5 @@ /* $Id$ */ -/* Release $Name$ */ - /* void * malloc( size_t ) This file is part of the Public Domain C Library (PDCLib). @@ -167,8 +165,6 @@ void * sbrk( intptr_t ); int main( void ) { #ifndef REGTEST - printf( "Start of malloc() testing...\n" ); - { void * ptr1, * ptr2, * ptr3, * ptr4, * ptr5, * ptr6, * ptr7, * ptr8, * ptr9; char * pages_start = _PDCLIB_allocpages( 0 ); /* allocating 10 byte; expected: 1 page allocation, node split */ @@ -241,10 +237,8 @@ int main( void ) TESTCASE( memset( ptr9, 0, 4072 ) == ptr9 ); TESTCASE( PAGETEST( 9 ) ); NODETRACE( 17 ); - printf( "End of malloc() testing.\n" ); - } #else - printf( "No testing of malloc() - test driver does not know internals of system malloc().\n" ); + puts( "No testing of malloc() - test driver does not know internals of system function." ); #endif return TEST_RESULTS; }