title: C standard library/function to find the byte order of the hardware
body: <p>I know there are very many different non-standard ways of finding (and converting) the endianness of your hardware. For example, <a href="http://www.intel.com/design/intarch/papers/endian.pdf" rel="nofollow">here</a> is one!</p>
  
  <p>We have the standard functions like <code>htonl()</code>, <code>htons()</code>, <code>ntohl()</code> and <code>ntohs()</code> to convert values between host and network byte order.</p>
  
  <p>Now my question is, in analogous to the above mentioned standard macros, are there any <em>standard</em> C macros/functions that is available to find the byte order of the hardware? </p>