projects
/
16.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4421280
)
extended the example~
author
sparky4
<sparky4@cock.li>
Thu, 2 Jul 2015 04:29:07 +0000
(23:29 -0500)
committer
sparky4
<sparky4@cock.li>
Thu, 2 Jul 2015 04:29:07 +0000
(23:29 -0500)
modified: exmmtest.exe
modified: src/exmmtest.c
exmmtest.exe
patch
|
blob
|
history
src/exmmtest.c
patch
|
blob
|
history
diff --git
a/exmmtest.exe
b/exmmtest.exe
index e4e63f5b16921909fa8d3600102bb3eb454a932c..0f3ba39ff83c4d732b730a19d8f01ddafc6c5e0a 100644
(file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
diff --git
a/src/exmmtest.c
b/src/exmmtest.c
index 7c234960c085798763952c9be0f8a65e7424011e..00b28e0eab54571f3f70619fc369cf6ea5c6629c 100644
(file)
--- 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");