From 3462bb922a1f6014c440d4dea9b0b33fc7c5b338 Mon Sep 17 00:00:00 2001 From: Ineiev Date: Fri, 25 Apr 2025 08:45:50 +0000 Subject: [PATCH] * c.texi (Structure Layout): Add structure alignment to index. --- c.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/c.texi b/c.texi index 1c6432e..142cfbb 100644 --- a/c.texi +++ b/c.texi @@ -6213,6 +6213,8 @@ consecutive bytes within the structure. However, if a field's type demands more alignment than it would get that way, C gives it the alignment it requires by leaving a gap after the previous field. +@cindex structure alignment +@cindex alignment of structures Once all the fields have been laid out, it is possible to determine the structure's alignment and size. The structure's alignment is the maximum alignment of any of the fields in it. Then the structure's