Hacker News new | ask | show | jobs
by unwind 2853 days ago
That's not true, since C11 we have:

    #include <stdlib.h>

    void *aligned_alloc(size_t alignment, size_t size);
which works like malloc() but lets you specify the required alignment.
2 comments

Could I not just call such a function from my alternative language?
Only for sizes <4KB