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


Include dependency graph for dkc\-Stdio.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=124pt]{dkcStdio_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int WINAPI {\bf dkc\_\-memcpy} (void $\ast$dest, size\_\-t size1, const void $\ast$src, size\_\-t size2)
\item 
int WINAPI {\bf dkc\_\-memmove} (void $\ast$dest, size\_\-t size1, const void $\ast$src, size\_\-t size2)
\item 
int WINAPI {\bf dkc\_\-strcpy} (char $\ast$dest, size\_\-t size1, const char $\ast$src, size\_\-t srclen)
\item 
int WINAPI {\bf dkc\_\-strcpy\_\-amap} (char $\ast$dest, size\_\-t size1, const char $\ast$src, size\_\-t srclen)
\item 
int WINAPI {\bf dkc\_\-strcpy\_\-amap2} (char $\ast$dest, size\_\-t size1, const char $\ast$src)
\begin{CompactList}\small\item\em dkutil::dkstrcpy\_\-amap2 \item\end{CompactList}\item 
int WINAPI {\bf dkc\_\-strcat} (char $\ast$dest, size\_\-t destsize, size\_\-t destlen, const char $\ast$src, size\_\-t srclen)
\begin{CompactList}\small\item\em dkutil::dkstrcat \item\end{CompactList}\item 
int WINAPI {\bf dkc\_\-strcat2} (char $\ast$dest, size\_\-t destsize, const char $\ast$src)
\begin{CompactList}\small\item\em dkutil::dkstrcat2 \item\end{CompactList}\item 
int WINAPI {\bf dkc\_\-strcat\_\-amap} (char $\ast$dest, size\_\-t destsize, size\_\-t destlen, const char $\ast$src, size\_\-t srclen)
\begin{CompactList}\small\item\em dkutil::dkstrcat\_\-amap \item\end{CompactList}\item 
int WINAPI {\bf dkc\_\-strcat\_\-amap2} (char $\ast$dest, size\_\-t destsize, const char $\ast$src)
\begin{CompactList}\small\item\em dkutil::dkstrcat\_\-amap2 \item\end{CompactList}\item 
int WINAPI {\bf dkc\_\-memcmp} (const void $\ast$buf1, size\_\-t buf1Permit\-Size, const void $\ast$buf2, size\_\-t count)
\begin{CompactList}\small\item\em dkutil::dkmemcmp \item\end{CompactList}\item 
int WINAPI {\bf dkc\_\-strcmp} (const char $\ast$b1, size\_\-t b1size, const char $\ast$b2, size\_\-t b2size)
\item 
size\_\-t {\bf dkc\_\-beam} (int num)
\item 
int {\bf dkc\_\-stream\_\-swap} (char $\ast$memory, size\_\-t size, size\_\-t point)
\begin{CompactList}\small\item\em 一つのメモリ領域をpointを基準に入れ替える。 \item\end{CompactList}\item 
void {\bf dkc\_\-memswap} (void $\ast$va, void $\ast$vb, size\_\-t size)
\begin{CompactList}\small\item\em dkutil::memswap \item\end{CompactList}\item 
void {\bf dkc\_\-memreverse} (void $\ast$array, size\_\-t num, size\_\-t size)
\begin{CompactList}\small\item\em dkutil::memreverse \item\end{CompactList}\item 
void {\bf dkc\_\-memrrotate} (void $\ast$array, size\_\-t shift, size\_\-t num, size\_\-t size)
\begin{CompactList}\small\item\em dkutil::memrrotate \item\end{CompactList}\item 
void {\bf dkc\_\-memlrotate} (void $\ast$array, size\_\-t shift, size\_\-t num, size\_\-t size)
\begin{CompactList}\small\item\em dkutil::memlrotate \item\end{CompactList}\end{CompactItemize}


\subsection{Function Documentation}
\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_beam@{dkc\_\-beam}}
\index{dkc_beam@{dkc\_\-beam}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}size\_\-t dkc\_\-beam (int {\em num})}\label{dkcStdio_8c_a11}


\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_memcmp@{dkc\_\-memcmp}}
\index{dkc_memcmp@{dkc\_\-memcmp}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-memcmp (const void $\ast$ {\em buf1}, size\_\-t {\em buf1Permit\-Size}, const void $\ast$ {\em buf2}, size\_\-t {\em count})}\label{dkcStdio_8c_a9}


dkutil::dkmemcmp 

\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_memcpy@{dkc\_\-memcpy}}
\index{dkc_memcpy@{dkc\_\-memcpy}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-memcpy (void $\ast$ {\em dest}, size\_\-t {\em size1}, const void $\ast$ {\em src}, size\_\-t {\em size2})}\label{dkcStdio_8c_a0}


\begin{Desc}
\item[Note:]{\bf dkc\-Stdio.h}{\rm (p.\,\pageref{dkcStdio_8h})}のC++版の方をCに移植したもの･･･。 あ〜、なんか虚しい･･･。なんかバグあったらどうかご報告ください。m(\_\- \_\-)m\end{Desc}
個人メモ： フィックス方法：間違い個所だけ直す･･･。 \index{dkcStdio.c@{dkc\-Stdio.c}!dkc_memlrotate@{dkc\_\-memlrotate}}
\index{dkc_memlrotate@{dkc\_\-memlrotate}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void dkc\_\-memlrotate (void $\ast$ {\em array}, size\_\-t {\em shift}, size\_\-t {\em num}, size\_\-t {\em size})}\label{dkcStdio_8c_a16}


dkutil::memlrotate 

大きさ size の要素 num 個からなる配列 array の要素を 左方向に要素 shift 個分だけ回転移動する。 \index{dkcStdio.c@{dkc\-Stdio.c}!dkc_memmove@{dkc\_\-memmove}}
\index{dkc_memmove@{dkc\_\-memmove}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-memmove (void $\ast$ {\em dest}, size\_\-t {\em size1}, const void $\ast$ {\em src}, size\_\-t {\em size2})}\label{dkcStdio_8c_a1}


\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_memreverse@{dkc\_\-memreverse}}
\index{dkc_memreverse@{dkc\_\-memreverse}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void dkc\_\-memreverse (void $\ast$ {\em array}, size\_\-t {\em num}, size\_\-t {\em size})}\label{dkcStdio_8c_a14}


dkutil::memreverse 

大きさ size の要素 num 個からなる配列 array の要素を 逆順に並べ替える。 \index{dkcStdio.c@{dkc\-Stdio.c}!dkc_memrrotate@{dkc\_\-memrrotate}}
\index{dkc_memrrotate@{dkc\_\-memrrotate}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void dkc\_\-memrrotate (void $\ast$ {\em array}, size\_\-t {\em shift}, size\_\-t {\em num}, size\_\-t {\em size})}\label{dkcStdio_8c_a15}


dkutil::memrrotate 

大きさ size の要素 num 個からなる配列 array の要素を 右方向に要素 shift 個分だけ回転移動する。 \index{dkcStdio.c@{dkc\-Stdio.c}!dkc_memswap@{dkc\_\-memswap}}
\index{dkc_memswap@{dkc\_\-memswap}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void dkc\_\-memswap (void $\ast$ {\em va}, void $\ast$ {\em vb}, size\_\-t {\em size})}\label{dkcStdio_8c_a13}


dkutil::memswap 

\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_strcat@{dkc\_\-strcat}}
\index{dkc_strcat@{dkc\_\-strcat}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-strcat (char $\ast$ {\em dest}, size\_\-t {\em destsize}, size\_\-t {\em destlen}, const char $\ast$ {\em src}, size\_\-t {\em srclen})}\label{dkcStdio_8c_a5}


dkutil::dkstrcat 

\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_strcat2@{dkc\_\-strcat2}}
\index{dkc_strcat2@{dkc\_\-strcat2}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-strcat2 (char $\ast$ {\em dest}, size\_\-t {\em destsize}, const char $\ast$ {\em src})}\label{dkcStdio_8c_a6}


dkutil::dkstrcat2 

\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_strcat_amap@{dkc\_\-strcat\_\-amap}}
\index{dkc_strcat_amap@{dkc\_\-strcat\_\-amap}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-strcat\_\-amap (char $\ast$ {\em dest}, size\_\-t {\em destsize}, size\_\-t {\em destlen}, const char $\ast$ {\em src}, size\_\-t {\em srclen})}\label{dkcStdio_8c_a7}


dkutil::dkstrcat\_\-amap 

\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_strcat_amap2@{dkc\_\-strcat\_\-amap2}}
\index{dkc_strcat_amap2@{dkc\_\-strcat\_\-amap2}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-strcat\_\-amap2 (char $\ast$ {\em dest}, size\_\-t {\em destsize}, const char $\ast$ {\em src})}\label{dkcStdio_8c_a8}


dkutil::dkstrcat\_\-amap2 

\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_strcmp@{dkc\_\-strcmp}}
\index{dkc_strcmp@{dkc\_\-strcmp}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-strcmp (const char $\ast$ {\em b1}, size\_\-t {\em b1size}, const char $\ast$ {\em b2}, size\_\-t {\em b2size})}\label{dkcStdio_8c_a10}


\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_strcpy@{dkc\_\-strcpy}}
\index{dkc_strcpy@{dkc\_\-strcpy}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-strcpy (char $\ast$ {\em dest}, size\_\-t {\em size1}, const char $\ast$ {\em src}, size\_\-t {\em srclen})}\label{dkcStdio_8c_a2}


\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_strcpy_amap@{dkc\_\-strcpy\_\-amap}}
\index{dkc_strcpy_amap@{dkc\_\-strcpy\_\-amap}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-strcpy\_\-amap (char $\ast$ {\em dest}, size\_\-t {\em size1}, const char $\ast$ {\em src}, size\_\-t {\em srclen})}\label{dkcStdio_8c_a3}


\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_strcpy_amap2@{dkc\_\-strcpy\_\-amap2}}
\index{dkc_strcpy_amap2@{dkc\_\-strcpy\_\-amap2}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int WINAPI dkc\_\-strcpy\_\-amap2 (char $\ast$ {\em dest}, size\_\-t {\em size1}, const char $\ast$ {\em src})}\label{dkcStdio_8c_a4}


dkutil::dkstrcpy\_\-amap2 

\index{dkcStdio.c@{dkc\-Stdio.c}!dkc_stream_swap@{dkc\_\-stream\_\-swap}}
\index{dkc_stream_swap@{dkc\_\-stream\_\-swap}!dkcStdio.c@{dkc\-Stdio.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int dkc\_\-stream\_\-swap (char $\ast$ {\em memory}, size\_\-t {\em size}, size\_\-t {\em point})}\label{dkcStdio_8c_a12}


一つのメモリ領域をpointを基準に入れ替える。 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em memory\mbox{[}in\mbox{]}\mbox{[}out\mbox{]}}]バッファへのポインタ \item[{\em size\mbox{[}in\mbox{]}}]memoryのサイズ \item[{\em point\mbox{[}in\mbox{]}}]何処を基点(何バイト目から)にSwapするか？ \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]edk\_\-SUCCEEDED以外ならエラー \end{Desc}
\begin{Desc}
\item[Note:]char $\ast$buff=\char`\"{}buffer\char`\"{};みたいに初期化したバッファをSwapさせるとエラーする。 \end{Desc}
