void *posix_memalign(void **memptr, size_t alignment, size_t size)

Allocates size bytes and places address of allocated memory in memptr