If ptr
was allocated with an alignment returned from aligned_alloc()
and if realloc()
reallocates memory with a different alignment then, the behavior is undefined.
Wiki Markup |
---|
This rule only applies to compilers that conform to the (emerging) C1X |
standard \[[ISO/IEC 9899:201x|http://www.open-std.org/Jtc1/sc22/wg14/www/docs/n1401.pdf]\] . |
Noncompliant Code Example
...