\hypertarget{NSBFSIM_8c}{
\section{NSBFSIM.c File Reference}
\label{NSBFSIM_8c}\index{NSBFSIM.c@{NSBFSIM.c}}
}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$unistd.h$>$}\par
{\tt \#include $<$fcntl.h$>$}\par
{\tt \#include $<$termios.h$>$}\par
{\tt \#include $<$time.h$>$}\par
{\tt \#include \char`\"{}CMDCNSL/NSBFSIM.h\char`\"{}}\par
{\tt \#include \char`\"{}NSBFSIM\_\-private.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{NSBFSIM_8c_a1}{NSBFSIM\_\-init} (int argc, char $\ast$$\ast$argv)
\begin{CompactList}\small\item\em Initialize the application resources.\item\end{CompactList}\item 
int \hyperlink{NSBFSIM_8c_a2}{main} (int argc, char $\ast$$\ast$argv)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
int \hyperlink{NSBFSIM_8c_a0}{NSBFSIM\_\-tty}
\end{CompactItemize}


\subsection{Detailed Description}




\subsection{Function Documentation}
\hypertarget{NSBFSIM_8c_a2}{
\index{NSBFSIM.c@{NSBFSIM.c}!main@{main}}
\index{main@{main}!NSBFSIM.c@{NSBFSIM.c}}
\subsubsection[main]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, char $\ast$$\ast$ {\em argv})}}
\label{NSBFSIM_8c_a2}


The application entry point.\begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
argc}]The number of command line args. \item[{\em 
argv}]An array of pointers to the command line args. \end{description}
\end{Desc}
\hypertarget{NSBFSIM_8c_a1}{
\index{NSBFSIM.c@{NSBFSIM.c}!NSBFSIM_init@{NSBFSIM\_\-init}}
\index{NSBFSIM_init@{NSBFSIM\_\-init}!NSBFSIM.c@{NSBFSIM.c}}
\subsubsection[NSBFSIM\_\-init]{\setlength{\rightskip}{0pt plus 5cm}int NSBFSIM\_\-init (int {\em argc}, char $\ast$$\ast$ {\em argv})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{NSBFSIM_8c_a1}


Initialize the application resources.

Performs the following actions to initialize the application: \par


\begin{CompactItemize}
\item 
Opens the tty device.\item 
Sets the tty character control mode\end{CompactItemize}
\begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
argc}]The number of command line args. \item[{\em 
argv}]An array of pointers to the command line args.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values: ]\par
\begin{description}
\item[{\em 
0}]Success. \item[{\em 
-1}]Failure. \end{description}
\end{Desc}


\subsection{Variable Documentation}
\hypertarget{NSBFSIM_8c_a0}{
\index{NSBFSIM.c@{NSBFSIM.c}!NSBFSIM_tty@{NSBFSIM\_\-tty}}
\index{NSBFSIM_tty@{NSBFSIM\_\-tty}!NSBFSIM.c@{NSBFSIM.c}}
\subsubsection[NSBFSIM\_\-tty]{\setlength{\rightskip}{0pt plus 5cm}int NSBFSIM\_\-tty\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{NSBFSIM_8c_a0}


A handle to the tty device. 