\hypertarget{group__Embryo__Data__String__Group}{}\section{Embryo Data String Functions}
\label{group__Embryo__Data__String__Group}\index{Embryo Data String Functions@{Embryo Data String Functions}}


Retrieves the length of the string starting at the given cell.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} void \hyperlink{group__Embryo__Data__String__Group_ga6056316c070a146eb63f08e8e4176328}{embryo\+\_\+data\+\_\+string\+\_\+get} (Embryo\+\_\+\+Program $\ast$ep, Embryo\+\_\+\+Cell $\ast$str\+\_\+cell, char $\ast$dst)
\begin{DoxyCompactList}\small\item\em Copies the string starting at the given cell to the given buffer. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} void \hyperlink{group__Embryo__Data__String__Group_ga2f1b7e5ce221aaada5663e46f2578815}{embryo\+\_\+data\+\_\+string\+\_\+set} (Embryo\+\_\+\+Program $\ast$ep, const char $\ast$src, Embryo\+\_\+\+Cell $\ast$str\+\_\+cell)
\begin{DoxyCompactList}\small\item\em Copies string in the given buffer into the virtual machine memory starting at the given cell. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} Embryo\+\_\+\+Cell $\ast$ \hyperlink{group__Embryo__Data__String__Group_gaa9c6beeb074c4495711c4817874ce04e}{embryo\+\_\+data\+\_\+address\+\_\+get} (Embryo\+\_\+\+Program $\ast$ep, Embryo\+\_\+\+Cell addr)
\begin{DoxyCompactList}\small\item\em Retreives a pointer to the address in the virtual machine given by the given cell. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Retrieves the length of the string starting at the given cell. 


\begin{DoxyParams}{Parameters}
{\em ep} & The program the cell is part of. \\
\hline
{\em str\+\_\+cell} & Pointer to the first cell of the string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The length of the string. {\ttfamily 0} is returned if there is an error.
\end{DoxyReturn}
Functions that operate on strings in the memory of a virtual machine. 

\subsection{Function Documentation}
\hypertarget{group__Embryo__Data__String__Group_ga6056316c070a146eb63f08e8e4176328}{}\index{Embryo Data String Functions@{Embryo Data String Functions}!embryo\+\_\+data\+\_\+string\+\_\+get@{embryo\+\_\+data\+\_\+string\+\_\+get}}
\index{embryo\+\_\+data\+\_\+string\+\_\+get@{embryo\+\_\+data\+\_\+string\+\_\+get}!Embryo Data String Functions@{Embryo Data String Functions}}
\subsubsection[{embryo\+\_\+data\+\_\+string\+\_\+get(\+Embryo\+\_\+\+Program $\ast$ep, Embryo\+\_\+\+Cell $\ast$str\+\_\+cell, char $\ast$dst)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} void embryo\+\_\+data\+\_\+string\+\_\+get (
\begin{DoxyParamCaption}
\item[{Embryo\+\_\+\+Program $\ast$}]{ep, }
\item[{Embryo\+\_\+\+Cell $\ast$}]{str\+\_\+cell, }
\item[{char $\ast$}]{dst}
\end{DoxyParamCaption}
)}\label{group__Embryo__Data__String__Group_ga6056316c070a146eb63f08e8e4176328}


Copies the string starting at the given cell to the given buffer. 


\begin{DoxyParams}{Parameters}
{\em ep} & The program the cell is part of. \\
\hline
{\em str\+\_\+cell} & Pointer to the first cell of the string. \\
\hline
{\em dst} & The given buffer. \\
\hline
\end{DoxyParams}
\hypertarget{group__Embryo__Data__String__Group_ga2f1b7e5ce221aaada5663e46f2578815}{}\index{Embryo Data String Functions@{Embryo Data String Functions}!embryo\+\_\+data\+\_\+string\+\_\+set@{embryo\+\_\+data\+\_\+string\+\_\+set}}
\index{embryo\+\_\+data\+\_\+string\+\_\+set@{embryo\+\_\+data\+\_\+string\+\_\+set}!Embryo Data String Functions@{Embryo Data String Functions}}
\subsubsection[{embryo\+\_\+data\+\_\+string\+\_\+set(\+Embryo\+\_\+\+Program $\ast$ep, const char $\ast$src, Embryo\+\_\+\+Cell $\ast$str\+\_\+cell)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} void embryo\+\_\+data\+\_\+string\+\_\+set (
\begin{DoxyParamCaption}
\item[{Embryo\+\_\+\+Program $\ast$}]{ep, }
\item[{const char $\ast$}]{src, }
\item[{Embryo\+\_\+\+Cell $\ast$}]{str\+\_\+cell}
\end{DoxyParamCaption}
)}\label{group__Embryo__Data__String__Group_ga2f1b7e5ce221aaada5663e46f2578815}


Copies string in the given buffer into the virtual machine memory starting at the given cell. 


\begin{DoxyParams}{Parameters}
{\em ep} & The program the cell is part of. \\
\hline
{\em src} & The given buffer. \\
\hline
{\em str\+\_\+cell} & Pointer to the first cell to copy the string to. \\
\hline
\end{DoxyParams}


Referenced by embryo\+\_\+program\+\_\+run().

\hypertarget{group__Embryo__Data__String__Group_gaa9c6beeb074c4495711c4817874ce04e}{}\index{Embryo Data String Functions@{Embryo Data String Functions}!embryo\+\_\+data\+\_\+address\+\_\+get@{embryo\+\_\+data\+\_\+address\+\_\+get}}
\index{embryo\+\_\+data\+\_\+address\+\_\+get@{embryo\+\_\+data\+\_\+address\+\_\+get}!Embryo Data String Functions@{Embryo Data String Functions}}
\subsubsection[{embryo\+\_\+data\+\_\+address\+\_\+get(\+Embryo\+\_\+\+Program $\ast$ep, Embryo\+\_\+\+Cell addr)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} Embryo\+\_\+\+Cell$\ast$ embryo\+\_\+data\+\_\+address\+\_\+get (
\begin{DoxyParamCaption}
\item[{Embryo\+\_\+\+Program $\ast$}]{ep, }
\item[{Embryo\+\_\+\+Cell}]{addr}
\end{DoxyParamCaption}
)}\label{group__Embryo__Data__String__Group_gaa9c6beeb074c4495711c4817874ce04e}


Retreives a pointer to the address in the virtual machine given by the given cell. 


\begin{DoxyParams}{Parameters}
{\em ep} & The program whose virtual machine address is being queried. \\
\hline
{\em addr} & The given cell. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to the cell at the given address. 
\end{DoxyReturn}


Referenced by embryo\+\_\+program\+\_\+run().

