memalign
--------

Documentation:

  * Allocating Aligned Memory Blocks (libc),

  * man memalign.

Gnulib module: memalign

Portability problems fixed by Gnulib:

  * This function is declared in <stdlib.h> instead of <malloc.h> on some platforms: Solaris 11.

  * This function doesn't accept an alignment of 1 or 2 on some platforms: Solaris 11.

Portability problems not fixed by Gnulib:

  * This function is missing on some platforms: macOS 11.1, FreeBSD 12.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 5.1, HP-UX 11.00, mingw, MSVC 14.

The Gnulib module aligned-malloc provides functions for allocating and freeing blocks of suitably aligned memory.