aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/info/chap/memory-allocation.texinfo4
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