...
Function | Successful Return | Error Return |
|
---|---|---|---|
| Pointer to a |
|
|
| Pointer to a |
|
|
|
| Nonzero 2 | Unchanged 2 |
...
Setting errno
is a POSIX [ISO/IEC 9945:2008] extension to the C Standard.
...
On error, posix_memalign()
returns a value that corresponds to one of the constants defined in the <errno.h>
header. The function does not set errno
. The posix_memalign()
function is optional and is not required to be provided by POSIX conforming implementations.
Noncompliant Code Example (POSIX)
...