I am trying to compile toolkit on Mac. It has a reference to the memalign function malloc.h, but the only close function I could find for mac was posix_memalign. So I'm trying to wrap posix_memalign so that it looks like memalign.
I am a little confused about how to do this (due to void * and void ** pointers):
Signature for posix_memalign -
int posix_memalign(void **memptr, size_t alignment, size_t size);
and signature for memalign:
void *memalign(size_t blocksize, size_t bytes);
Any pointers are greatly appreciated. (Lame pun is random! :)
thanks
source share