added anmalloc_used() function