\hypertarget{unionU}{
\section{U Union Reference}
\label{unionU}\index{U@{U}}
}
A union used to reference an integer both as a 32 bit integer and as an array of 4 bytes.  


\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
unsigned int \hyperlink{unionU_9428386c9ed252052eabd04010788c2c}{ui}
\item 
unsigned char \hyperlink{unionU_0afe5445c53299105265a80f35b2bd19}{uc} \mbox{[}4\mbox{]}
\end{CompactItemize}


\subsection{Detailed Description}
A union used to reference an integer both as a 32 bit integer and as an array of 4 bytes. 

By referencing the same integer as both a 32-bit integer and an array of 4 bytes, one can experimentally determine the endianness of the machine at run time.

If the machine is a little endian machine, element 0 of the array of 4 bytes will match the byte with the least significant portion of the integer, element 1 will match the next least significant portion and so forth.

If the machine is a big endian machine, element 3 of the array of 4 bytes will match the byte with the least significant portion of the integer, element 2 will match the next least significant portion and so forth. 

\subsection{Member Data Documentation}
\hypertarget{unionU_0afe5445c53299105265a80f35b2bd19}{
\index{U@{U}!uc@{uc}}
\index{uc@{uc}!U@{U}}
\subsubsection[{uc}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char {\bf U::uc}\mbox{[}4\mbox{]}}}
\label{unionU_0afe5445c53299105265a80f35b2bd19}


Reference the value as an array of 4 bytes 

Referenced by test\_\-endianness().\hypertarget{unionU_9428386c9ed252052eabd04010788c2c}{
\index{U@{U}!ui@{ui}}
\index{ui@{ui}!U@{U}}
\subsubsection[{ui}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int {\bf U::ui}}}
\label{unionU_9428386c9ed252052eabd04010788c2c}


Reference the value as a 32-bit integer 

Referenced by test\_\-endianness().

The documentation for this union was generated from the following file:\begin{CompactItemize}
\item 
\hyperlink{test__endianness_8c}{test\_\-endianness.c}\end{CompactItemize}
