From: sparky4 Date: Thu, 2 Jul 2015 04:29:07 +0000 (-0500) Subject: extended the example~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=8fe64020d429afc5c31151aa3eef107c3cd1d599;p=16.git extended the example~ modified: exmmtest.exe modified: src/exmmtest.c --- diff --git a/exmmtest.exe b/exmmtest.exe index e4e63f5b..0f3ba39f 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/exmmtest.c b/src/exmmtest.c index 7c234960..00b28e0e 100644 --- a/src/exmmtest.c +++ b/src/exmmtest.c @@ -28,12 +28,15 @@ void main(int argc, char *argv[]) { mminfo_t mm; mminfotype mmi; - + memptr bigbuffer; mm.mmstarted=0; printf("start!\n"); MM_Startup(&mm, &mmi); printf("done!\n"); printf("&main()=%Fp\n", *argv[0]); + MM_GetPtr(&bigbuffer, 65535UL, &mm, &mmi); + printf("size of big buffer~=%ul\n", _msize(bigbuffer)); + MM_FreePtr(&bigbuffer, &mm); MM_ShowMemory(&mm); MM_Report(&mm, &mmi); printf("stop!\n");