title: Size of int in C on different architectures
body: <p>I am aware that the specification of the C language does not dictate the exact size of each integer type (e.g., <code>int</code>).</p>
  
  <p>What I am wondering is: Is there a way in C (not C++) to define an integer type with a specific size that ensures it will be the same across different architectures? Like:</p>
  
  <pre><code>typedef int8 &lt;an integer with 8 bits&gt;
  typedef int16 &lt;an integer with 16 bits&gt;
  </code></pre>
  
  <p>Or any other way that will allow other parts of the program to be compiled on different architecture.</p>