\section{dkc\-Stack.c File Reference}
\label{dkcStack_8c}\index{dkcStack.c@{dkcStack.c}}
{\tt \#include \char`\"{}dkc\-Stack.h\char`\"{}}\par
{\tt \#include \char`\"{}dkc\-Stdio.h\char`\"{}}\par


Include dependency graph for dkc\-Stack.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=134pt]{dkcStack_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
{\bf DKC\_\-STACK} $\ast$WINAPI {\bf dkc\-Alloc\-Stack} (size\_\-t numof\_\-\_\-, size\_\-t offsetof\_\-\_\-)
\item 
int WINAPI {\bf dkc\-Free\-Stack} ({\bf DKC\_\-STACK} $\ast$$\ast$ptr)
\item 
void WINAPI {\bf dkc\-Stack\-Pop} ({\bf DKC\_\-STACK} $\ast$ptr)
\item 
int WINAPI {\bf dkc\-Stack\-Top} ({\bf DKC\_\-STACK} $\ast$ptr, void $\ast$get\_\-data)
\item 
int WINAPI {\bf dkc\-Stack\-Push} ({\bf DKC\_\-STACK} $\ast$ptr, const void $\ast$data)
\item 
int WINAPI {\bf dkc\-Stack\-Dynamic\-Push} ({\bf DKC\_\-STACK} $\ast$ptr, const void $\ast$data)
\item 
void WINAPI {\bf dkc\-Stack\-Clear} ({\bf DKC\_\-STACK} $\ast$ptr)
\item 
size\_\-t WINAPI {\bf dkc\-Stack\-Size} ({\bf DKC\_\-STACK} $\ast$ptr)
\item 
{\bf BOOL} WINAPI {\bf dkc\-Stack\-Is\-Empty} ({\bf DKC\_\-STACK} $\ast$ptr)
\end{CompactItemize}


\subsection{Detailed Description}
d金魚 \begin{Desc}
\item[Since:]2004/3/xx\end{Desc}


\subsection{Function Documentation}
\index{dkcStack.c@{dkc\-Stack.c}!dkcAllocStack@{dkcAllocStack}}
\index{dkcAllocStack@{dkcAllocStack}!dkcStack.c@{dkc\-Stack.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DKC\_\-STACK}$\ast$ WINAPI dkc\-Alloc\-Stack (size\_\-t {\em numoff\_\-\_\-}, size\_\-t {\em offsetof\_\-\_\-})}\label{dkcStack_8c_a0}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em numof\_\-\_\-\mbox{[}in\mbox{]}}]スタックに使う配列の要素の数 \item[{\em offsetof\_\-\_\-\mbox{[}in\mbox{]}}]スタックにぶち込むデータのサイズ \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]スタックハンドルへのポインタ。 \end{Desc}
\index{dkcStack.c@{dkc\-Stack.c}!dkcFreeStack@{dkcFreeStack}}
\index{dkcFreeStack@{dkcFreeStack}!dkcStack.c@{dkc\-Stack.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\-Free\-Stack ({\bf DKC\_\-STACK} $\ast$$\ast$ {\em ptr})}\label{dkcStack_8c_a1}


\begin{Desc}
\item[Note:]必ず使用したあとはこれを呼んでください。 dkc\-Alloc\-Stackと対。 \end{Desc}
\index{dkcStack.c@{dkc\-Stack.c}!dkcStackClear@{dkcStackClear}}
\index{dkcStackClear@{dkcStackClear}!dkcStack.c@{dkc\-Stack.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void WINAPI dkc\-Stack\-Clear ({\bf DKC\_\-STACK} $\ast$ {\em ptr})}\label{dkcStack_8c_a6}


Stack内のカウンタを０に戻して、スタックを事実上クリアする。 \index{dkcStack.c@{dkc\-Stack.c}!dkcStackDynamicPush@{dkcStackDynamicPush}}
\index{dkcStackDynamicPush@{dkcStackDynamicPush}!dkcStack.c@{dkc\-Stack.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\-Stack\-Dynamic\-Push ({\bf DKC\_\-STACK} $\ast$ {\em ptr}, const void $\ast$ {\em data})}\label{dkcStack_8c_a5}


\index{dkcStack.c@{dkc\-Stack.c}!dkcStackIsEmpty@{dkcStackIsEmpty}}
\index{dkcStackIsEmpty@{dkcStackIsEmpty}!dkcStack.c@{dkc\-Stack.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf BOOL} WINAPI dkc\-Stack\-Is\-Empty ({\bf DKC\_\-STACK} $\ast$ {\em ptr})}\label{dkcStack_8c_a8}


\index{dkcStack.c@{dkc\-Stack.c}!dkcStackPop@{dkcStackPop}}
\index{dkcStackPop@{dkcStackPop}!dkcStack.c@{dkc\-Stack.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void WINAPI dkc\-Stack\-Pop ({\bf DKC\_\-STACK} $\ast$ {\em ptr})}\label{dkcStack_8c_a2}


\begin{Desc}
\item[Note:]\end{Desc}
\index{dkcStack.c@{dkc\-Stack.c}!dkcStackPush@{dkcStackPush}}
\index{dkcStackPush@{dkcStackPush}!dkcStack.c@{dkc\-Stack.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\-Stack\-Push ({\bf DKC\_\-STACK} $\ast$ {\em ptr}, const void $\ast$)}\label{dkcStack_8c_a4}


$\backslash$ \index{dkcStack.c@{dkc\-Stack.c}!dkcStackSize@{dkcStackSize}}
\index{dkcStackSize@{dkcStackSize}!dkcStack.c@{dkc\-Stack.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}size\_\-t WINAPI dkc\-Stack\-Size ({\bf DKC\_\-STACK} $\ast$ {\em ptr})}\label{dkcStack_8c_a7}


\index{dkcStack.c@{dkc\-Stack.c}!dkcStackTop@{dkcStackTop}}
\index{dkcStackTop@{dkcStackTop}!dkcStack.c@{dkc\-Stack.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\-Stack\-Top ({\bf DKC\_\-STACK} $\ast$ {\em ptr}, void $\ast$ {\em get\_\-data})}\label{dkcStack_8c_a3}


