diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-18 04:31:32 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-18 04:31:32 +0200 |
commit | 1aa2c40e615d160557581cbfea5a649f35732958 (patch) | |
tree | 45c6f0928c3e59a6cd096a0b6a354805dc51ac17 /doc/info/chap | |
parent | derp (diff) | |
download | slibc-1aa2c40e615d160557581cbfea5a649f35732958.tar.gz slibc-1aa2c40e615d160557581cbfea5a649f35732958.tar.bz2 slibc-1aa2c40e615d160557581cbfea5a649f35732958.tar.xz |
info: unaligned pointers
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | doc/info/chap/memory-allocation.texinfo | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/info/chap/memory-allocation.texinfo b/doc/info/chap/memory-allocation.texinfo index cc88dcf..b88a4b8 100644 --- a/doc/info/chap/memory-allocation.texinfo +++ b/doc/info/chap/memory-allocation.texinfo @@ -399,7 +399,9 @@ suitable aligment for any pointer type. @code{malloc}, even before C11, uses its size for the aligment of all pointers it returns. @code{malloc(n)} is hence equivalent to -@code{aligned_alloc(sizeof(max_align_t), n)}. +@code{memalign(sizeof(max_align_t), n)}. If +you want the pointer to be unaligned, call +@code{memalign(1, n)}. @item void* calloc(size_t count, size_t size) @fnindex calloc |