<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=15015&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-04-06T07:32:10+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=15015&amp;mode</id>
<entry>
<author><name><![CDATA[Sparrow-hawk]]></name></author>
<updated>2016-04-06T07:32:10+01:00</updated>
<published>2016-04-06T07:32:10+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157911#p157911</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157911#p157911"/>
<title type="html"><![CDATA[Re: Tablica]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157911#p157911"><![CDATA[
[syntax=c]int strcmp (const char * s1, const char * s2) {<br />  while (*s1 != '\0' &amp;&amp; *s2 != '\0' &amp;&amp; *s1 == *s2) {<br />    ++s1;<br />    ++s2;<br />  }<br />  return *s1 - *s2;<br />}[/syntax]<br />Poprawiłem kod <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";-)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=10614">Sparrow-hawk</a> — 6 kwi 2016, o 07:32</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SunRiver]]></name></author>
<updated>2016-04-03T10:15:30+01:00</updated>
<published>2016-04-03T10:15:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157592#p157592</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157592#p157592"/>
<title type="html"><![CDATA[Re: Tablica]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157592#p157592"><![CDATA[
TAk bo NULL to wartość  = NIC  ,  ani 0 ani nic innego  niemniej zakłada się w JĘZYKU C że NULL = 0 gdyż tak <br />jest w 90% przypadków  ....  ale zapis &quot;\0&quot; jest lepszy od 0 <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=58">SunRiver</a> — 3 kwi 2016, o 10:15</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Daro69]]></name></author>
<updated>2016-04-03T00:34:32+01:00</updated>
<published>2016-04-03T00:34:32+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157579#p157579</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157579#p157579"/>
<title type="html"><![CDATA[Re: Tablica]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157579#p157579"><![CDATA[
witam <br />B.B.str148<br />zalecane jest użyć -o ile dobrze zrozumiałem:<br />[syntax=c]for(i=0;i&lt;ilość_znaków;i++){<br /><br />tab&#91;i&#93;='\0';  /*tak zrozumiałem że lepiej pisać '\0' zamiast 0 .*/<br />}[/syntax]<br />Jeżeli się mylę to proszę mnie poprawić. <img src="https://forum.atnel.pl/images/smilies/icon_e_confused.gif" alt=":?" title="Boi się" /> <br />pozdrawiam Darek.P.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=11549">Daro69</a> — 3 kwi 2016, o 00:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SunRiver]]></name></author>
<updated>2016-04-02T21:27:46+01:00</updated>
<published>2016-04-02T21:27:46+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157567#p157567</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157567#p157567"/>
<title type="html"><![CDATA[Re: Tablica]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157567#p157567"><![CDATA[
hmm<br /><br />[syntax=c]for(i = 0; i &lt; 20; i++)<br /><br />         a = 0<br />         tablica&#91;i&#93; = a[/syntax]<br /><br />oczywiście to tylko taki przykład <img src="https://forum.atnel.pl/images/smilies/icon_razz.gif" alt=":P" title="Pokazuje język" /><br /><br />bo przecież można np zadeklarować tak:<br /> <br />[syntax=c]int tab&#91;0x1000&#93; = {0};[/syntax]<br /><br />ew skorzystać z <br /><br />[syntax=c]memset(tab, 0, 0x1000);[/syntax]<br /><br />zakładając ze NULL będzie zerem ... bo w zasadzie wartość zero przyjmuje zazwyczaj <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br /> choć z drugiej  strony .... może bezpieczniej użyć NULL ??<br /><br />ale choć NULL nie musi być zerem to jednak w praktyce możemy zawsze uznawać że NULL = 0<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=58">SunRiver</a> — 2 kwi 2016, o 21:27</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ShutDownSystem]]></name></author>
<updated>2016-04-02T21:20:03+01:00</updated>
<published>2016-04-02T21:20:03+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157565#p157565</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157565#p157565"/>
<title type="html"><![CDATA[Re: Tablica]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15015&amp;p=157565#p157565"><![CDATA[
Można spróbować funkcją memset?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4804">ShutDownSystem</a> — 2 kwi 2016, o 21:20</p><hr />
]]></content>
</entry>
</feed>