mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 07:57:35 +00:00
17 lines
361 B
C
17 lines
361 B
C
#include <r_util.h>
|
|
|
|
const char *buf[] = { "eax", "ebx", "ecx", NULL };
|
|
|
|
int main() {
|
|
struct r_mem_pool_t *pool = r_mem_pool_new(128, 0, 0);
|
|
void *foo = r_mem_pool_alloc(pool);
|
|
eprintf ("foo1 = %p\n", foo);
|
|
foo = r_mem_pool_alloc(pool);
|
|
eprintf ("foo1 = %p\n", foo);
|
|
|
|
printf ("%d\n", r_mem_count ((const ut8**)buf));
|
|
|
|
r_mem_pool_free(pool);
|
|
return 0;
|
|
}
|