<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stéphane Bauland &#187; eina</title>
	<atom:link href="http://www.creasso.org/tag/eina/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.creasso.org</link>
	<description>Bloguage !</description>
	<lastBuildDate>Wed, 14 Apr 2010 12:18:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Liste chaînée simple avec Eina.</title>
		<link>http://www.creasso.org/2008/11/28/liste-chainee-simple-avec-eina/</link>
		<comments>http://www.creasso.org/2008/11/28/liste-chainee-simple-avec-eina/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 11:53:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programmation]]></category>
		<category><![CDATA[eina]]></category>
		<category><![CDATA[elf]]></category>

		<guid isPermaLink="false">http://www.creasso.org/?p=16</guid>
		<description><![CDATA[Eina est LA bibliothèque de “base” d’Enlightenment. Elle fournit un ensemble d’outils (“data types”) utilisés par les EFL, comme des tableaux, des hashs, des listes chaînées, une gestion de modules, et bien plus encore…

Voici, un exemple simple d’usage de ses listes chaînées.

#include &#60;Eina.h&#62;
&#160;
int main&#40;int ac, char **av&#41;
&#123;
  int i;
  char *data;
  Eina_List [...]]]></description>
			<content:encoded><![CDATA[<p>Eina est LA bibliothèque de “base” d’Enlightenment. Elle fournit un ensemble d’outils (“data types”) utilisés par les EFL, comme des tableaux, des hashs, des listes chaînées, une gestion de modules, et bien plus encore…<br />
<span id="more-16"></span></p>
<p>Voici, un exemple simple d’usage de ses listes chaînées.</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include &lt;Eina.h&gt;</span>
&nbsp;
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> ac<span style="color: #339933;">,</span> <span style="color: #993333;">char</span> <span style="color: #339933;">**</span>av<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #993333;">int</span> i<span style="color: #339933;">;</span>
  <span style="color: #993333;">char</span> <span style="color: #339933;">*</span>data<span style="color: #339933;">;</span>
  Eina_List <span style="color: #339933;">*</span>list <span style="color: #339933;">=</span> NULL<span style="color: #339933;">,</span> <span style="color: #339933;">*</span>l <span style="color: #339933;">=</span> NULL<span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>ac <span style="color: #339933;">&lt;=</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
&nbsp;
  eina_init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span>i<span style="color: #339933;">=</span><span style="color: #0000dd;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>ac<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
    list <span style="color: #339933;">=</span> eina_list_append<span style="color: #009900;">&#40;</span>list<span style="color: #339933;">,</span> eina_stringshare_add<span style="color: #009900;">&#40;</span>av<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  EINA_LIST_FOREACH<span style="color: #009900;">&#40;</span>list<span style="color: #339933;">,</span> l<span style="color: #339933;">,</span> data<span style="color: #009900;">&#41;</span>
    <span style="color: #000066;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;argument : %s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> data<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.creasso.org/2008/11/28/liste-chainee-simple-avec-eina/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
