
\begin{DoxyCodeInclude}{0}
\DoxyCodeLine{\textcolor{comment}{//Compile with:}}
\DoxyCodeLine{\textcolor{comment}{//gcc -\/g eina\_array\_01.c -\/o eina\_array\_01 `pkg-\/config -\/-\/cflags -\/-\/libs eina`}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <stdio.h>}}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <string.h>}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{preprocessor}{\#include <\mbox{\hyperlink{Eina_8h}{Eina.h}}>}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{static} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}}}
\DoxyCodeLine{\_print(\textcolor{keyword}{const} \textcolor{keywordtype}{void} *container \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \textcolor{keywordtype}{void} *data, \textcolor{keywordtype}{void} *fdata \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{  printf(\textcolor{stringliteral}{"{}\%s\(\backslash\)n"{}}, (\textcolor{keywordtype}{char} *)data);}
\DoxyCodeLine{   \textcolor{keywordflow}{return} \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}};}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keywordtype}{int}}
\DoxyCodeLine{main(\textcolor{keywordtype}{int} argc \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \textcolor{keywordtype}{char} **argv \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}})}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \textcolor{keyword}{const} \textcolor{keywordtype}{char}* strings[] = \{}
\DoxyCodeLine{      \textcolor{stringliteral}{"{}helo"{}}, \textcolor{stringliteral}{"{}hera"{}}, \textcolor{stringliteral}{"{}starbuck"{}}, \textcolor{stringliteral}{"{}kat"{}}, \textcolor{stringliteral}{"{}boomer"{}},}
\DoxyCodeLine{      \textcolor{stringliteral}{"{}hotdog"{}}, \textcolor{stringliteral}{"{}longshot"{}}, \textcolor{stringliteral}{"{}jammer"{}}, \textcolor{stringliteral}{"{}crashdown"{}}, \textcolor{stringliteral}{"{}hardball"{}},}
\DoxyCodeLine{      \textcolor{stringliteral}{"{}duck"{}}, \textcolor{stringliteral}{"{}racetrack"{}}, \textcolor{stringliteral}{"{}apolo"{}}, \textcolor{stringliteral}{"{}husker"{}}, \textcolor{stringliteral}{"{}freaker"{}},}
\DoxyCodeLine{      \textcolor{stringliteral}{"{}skulls"{}}, \textcolor{stringliteral}{"{}bulldog"{}}, \textcolor{stringliteral}{"{}flat top"{}}, \textcolor{stringliteral}{"{}hammerhead"{}}, \textcolor{stringliteral}{"{}gonzo"{}}}
\DoxyCodeLine{   \};}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Eina__Array}{Eina\_Array}} *array;}
\DoxyCodeLine{   \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} i;}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Eina__Main__Group_gafee4bfc0e509b6ffed6598edf6f4b3de}{eina\_init}}();}
\DoxyCodeLine{}
\DoxyCodeLine{   array = \mbox{\hyperlink{group__Eina__Array__Group_gad671e356ded4049ccff24cc46f6f6f43}{eina\_array\_new}}(10);}
\DoxyCodeLine{   \mbox{\hyperlink{group__Eina__Array__Group_gaafbc47b2fb79df3e16555c819339e696}{eina\_array\_step\_set}}(array, \textcolor{keyword}{sizeof}(*array), 20);}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{for} (i = 0; i < 20; i++)}
\DoxyCodeLine{     \mbox{\hyperlink{group__Eina__Array__Group_ga97ac1fe353f4cd7a9762af4d4db7b9c4}{eina\_array\_push}}(array, strdup(strings[i]));}
\DoxyCodeLine{}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"{}array count: \%d\(\backslash\)n"{}}, \mbox{\hyperlink{group__Eina__Array__Group_gafcc60b430bbc132114ef041e589d3ecf}{eina\_array\_count}}(array));}
\DoxyCodeLine{   \mbox{\hyperlink{group__Eina__Array__Group_ga8de2d191a0fffceb5bdc6376540b8db1}{eina\_array\_foreach}}(array, \_print, NULL);}
\DoxyCodeLine{}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"{}Top gun: \%s\(\backslash\)n"{}}, (\textcolor{keywordtype}{char}*)\mbox{\hyperlink{group__Eina__Array__Group_gac64d3d4d66b89ebc4bed47ae12a9604d}{eina\_array\_data\_get}}(array, 2));}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{while} (\mbox{\hyperlink{group__Eina__Array__Group_gafcc60b430bbc132114ef041e589d3ecf}{eina\_array\_count}}(array))}
\DoxyCodeLine{     free(\mbox{\hyperlink{group__Eina__Array__Group_gafa900c630f0eaa45dd54d907523746e0}{eina\_array\_pop}}(array));}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Eina__Array__Group_gaee9eb6a413ab294a5d69771f14cf3543}{eina\_array\_free}}(array);}
\DoxyCodeLine{}
\DoxyCodeLine{   \mbox{\hyperlink{group__Eina__Main__Group_ga2c8b4020427108a30c44707af22c99d3}{eina\_shutdown}}();}
\DoxyCodeLine{}
\DoxyCodeLine{   \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{\}}
\end{DoxyCodeInclude}
 