Is there a system call/library function to get alignment of a type (e. g. int or double) in Linux? Also can I get the minimum alignment that suffices all types?
Asked
Active
Viewed 117 times
1 Answers
0
The C11 standard introduces the _Alignof
operator, and the convenience macro alignof
.
Also, GCC has had the __alignof__
keyword for a while.

mtijanic
- 2,872
- 11
- 26