Allocate at specific address

closed account (o1vk4iN6)
I know windows has VirtualAlloc() and was wondering what the unix equivalent is for use with android and iOS?
You shouldn't think of VirtualAlloc as an allocator that allocates at a specific address (because it doesn't). You should think of it as the system allocator. The equivalent in Unix is malloc.
I'd say mmap() with MAP_ANONYMOUS is a bit closer to VirtualAlloc() that malloc()
Last edited on
Topic archived. No new replies allowed.