\section{include/string.h File Reference}
\label{string_8h}\index{include/string.h@{include/string.h}}
Interface: string functions. 

{\tt \#include $<$mem.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void $\ast$ {\bf memcpy} (void $\ast$dest, const void $\ast$src, {\bf size\_\-t} size)
\begin{CompactList}\small\item\em copy memory block from src to dest. \item\end{CompactList}\item 
void $\ast$ {\bf memset} (void $\ast$s, int c, {\bf size\_\-t} n)
\begin{CompactList}\small\item\em fill memory block with a byte value. \item\end{CompactList}\item 
char $\ast$ {\bf strcpy} (char $\ast$dest, const char $\ast$src)
\begin{CompactList}\small\item\em Copy null-terminated string from src to dest. \item\end{CompactList}\item 
int {\bf strlen} (const char $\ast$s)
\begin{CompactList}\small\item\em Determine string length. \item\end{CompactList}\item 
int {\bf strcmp} (const char $\ast$s1, const char $\ast$s2)
\begin{CompactList}\small\item\em Compare two strings. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Interface: string functions. 

\begin{Desc}
\item[Author:]Markus L. Noga $<${\tt markus@noga.de}$>$\end{Desc}


Definition in file {\bf string.h}.

\subsection{Function Documentation}
\index{string.h@{string.h}!memcpy@{memcpy}}
\index{memcpy@{memcpy}!string.h@{string.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ memcpy (void $\ast$ {\em dest}, const void $\ast$ {\em src}, {\bf size\_\-t} {\em size})}\label{string_8h_a0}


copy memory block from src to dest. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em dest}]destination \item[{\em src}]source \item[{\em size}]number of bytes to copy\end{description}
\end{Desc}
\begin{Desc}
\item[Warning:]behaviour is undefined in case source and destination blocks overlap. \end{Desc}
\index{string.h@{string.h}!memset@{memset}}
\index{memset@{memset}!string.h@{string.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ memset (void $\ast$ {\em s}, int {\em c}, {\bf size\_\-t} {\em n})}\label{string_8h_a1}


fill memory block with a byte value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em s}]start \item[{\em c}]byte fill value \item[{\em n}]number of bytes to fill \end{description}
\end{Desc}


Definition at line 40 of file memset.c.

References \_\-\_\-asm\_\-\_\-().

Referenced by kmain(), lcd\_\-init(), rcx\_\-init(), rcx\-Init(), and srec\_\-load().\index{string.h@{string.h}!strcmp@{strcmp}}
\index{strcmp@{strcmp}!string.h@{string.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int strcmp (const char $\ast$ {\em s1}, const char $\ast$ {\em s2})}\label{string_8h_a4}


Compare two strings. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em s1}]first string \item[{\em s2}]second string \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]$<$0: s1$<$s2, ==0: s1==s2, $>$0: s1$>$s2 \end{Desc}


Definition at line 31 of file strcmp.c.

Referenced by lx\_\-read(), main(), read\_\-symbols(), and symbols\_\-load().\index{string.h@{string.h}!strcpy@{strcpy}}
\index{strcpy@{strcpy}!string.h@{string.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ strcpy (char $\ast$ {\em dest}, const char $\ast$ {\em src})}\label{string_8h_a2}


Copy null-terminated string from src to dest. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]source \item[{\em dest}]destination \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]pointer to dest \end{Desc}


Definition at line 31 of file strcpy.c.\index{string.h@{string.h}!strlen@{strlen}}
\index{strlen@{strlen}!string.h@{string.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int strlen (const char $\ast$ {\em s})}\label{string_8h_a3}


Determine string length. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em s}]string \item[{\em s2}]second string \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]string length \end{Desc}


Definition at line 31 of file strlen.c.

Referenced by main().