Choosing Integer Types for C Public APIs: A Decision Guide
C library authors face a trade-off between standard types, exact-width C99 types, and implementation-optimized variants. This guide compares them across portability, ABI stability, and serialization needs, then shows how to validate layout assumptions with compiler checks and sanitizers.