\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*{Data Fields}
\begin{CompactItemize}
\item 
unsigned int \hyperlink{unionU_o0}{ui}
\item 
unsigned char \hyperlink{unionU_o1}{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{Field Documentation}
\hypertarget{unionU_o1}{
\index{U@{U}!uc@{uc}}
\index{uc@{uc}!U@{U}}
\subsubsection[uc]{\setlength{\rightskip}{0pt plus 5cm}unsigned char \hyperlink{unionU_o1}{U::uc}\mbox{[}4\mbox{]}}}
\label{unionU_o1}


Reference the value as an array of 4 bytes \hypertarget{unionU_o0}{
\index{U@{U}!ui@{ui}}
\index{ui@{ui}!U@{U}}
\subsubsection[ui]{\setlength{\rightskip}{0pt plus 5cm}unsigned int \hyperlink{unionU_o0}{U::ui}}}
\label{unionU_o0}


Reference the value as a 32-bit integer 

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