memalign(3C)															      memalign(3C)

NAME
memalign() - allocate aligned memory SYNOPSIS
DESCRIPTION
allocates space for a block of size bytes, whose address is a multiple of boundary. The space is not initialized. The boundary must be a power of 2. EXTERNAL INFLUENCES
employs the allocator. For tuning information, see the malloc(3C) man page. RETURN VALUE
Upon successful completion, returns a pointer to space aligned to a multiple of boundary. Otherwise, it returns a NULL pointer. DIAGNOSTICS
returns a NULL pointer if there is no available memory, or if the value of boundary is not a power of 2. ERRORS
sets to and returns a NULL pointer when an out-of-memory condition arises. sets to and returns a NULL pointer when the value of boundary is not a power of 2. sets to and returns a NULL pointer when the memory being managed by has been detectably corrupted. WARNINGS
For warnings, see the malloc(3C) man page. SEE ALSO
thread_safety(5). STANDARDS CONFORMANCE
There appear to be no standards applicable to Some implementations do not check that boundary is a power of 2. The HP-UX implementation is not derived from any predecessor. memalign(3C)