<?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=15643&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-06-22T20:03:45+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=15643&amp;mode</id>
<entry>
<author><name><![CDATA[matekogon]]></name></author>
<updated>2016-06-22T20:03:45+01:00</updated>
<published>2016-06-22T20:03:45+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162778#p162778</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162778#p162778"/>
<title type="html"><![CDATA[Re: pytanie odnośnie funkcji strncmp]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162778#p162778"><![CDATA[
Koledzy dzięki za informację już wiem co mnie zgubiło <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> <img src="https://forum.atnel.pl/images/smilies/icon_redface.gif" alt=":oops:" title="Zawstydzony" />  <img src="https://forum.atnel.pl/images/smilies/icon_redface.gif" alt=":oops:" title="Zawstydzony" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1380">matekogon</a> — 22 cze 2016, o 20:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Daro69]]></name></author>
<updated>2016-06-22T19:49:22+01:00</updated>
<published>2016-06-22T19:49:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162776#p162776</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162776#p162776"/>
<title type="html"><![CDATA[Re: pytanie odnośnie funkcji strncmp]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162776#p162776"><![CDATA[
kolego matekogon,<br /><br />Tak jak Pan Mirek opisał.<br />w twoim przykładzie:<br />w poz. 2 . zostanie zwrócona wartość &quot;0&quot;.  ponieważ  &quot;test&quot; = &quot;test&quot;<br />w poz. 4 . zostanie zwrócona wartość  &gt;0 , ponieważ &quot;t...&quot; &gt; &quot;  ...&quot;<br />w poz. 5 . zostanie zwrócona wartość &gt;0 , ponieważ &quot;t...&quot; &gt; &quot; d...&quot;<br /><br />.. &quot;<span style="color: #0040BF">t</span>est&quot; &gt; &quot;<span style="color: #4000BF">d</span>ana&quot; zwróci wartość &gt;0 .<br />pozdrawiam.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=11549">Daro69</a> — 22 cze 2016, o 19:49</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matekogon]]></name></author>
<updated>2016-06-22T19:45:55+01:00</updated>
<published>2016-06-22T19:45:55+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162774#p162774</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162774#p162774"/>
<title type="html"><![CDATA[Re: pytanie odnośnie funkcji strncmp]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162774#p162774"><![CDATA[
Funkcję strncmp wykorzystujemy w poradniku z serwerem <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />czy tutaj powino być 0,jakaś liczba?<br />[syntax=c]strncmp(&quot;test&quot;,&quot;dana test&quot;,4)-----&gt;?[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1380">matekogon</a> — 22 cze 2016, o 19:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2016-06-22T19:27:37+01:00</updated>
<published>2016-06-22T19:27:37+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162771#p162771</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162771#p162771"/>
<title type="html"><![CDATA[Re: pytanie odnośnie funkcji strncmp]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162771#p162771"><![CDATA[
chyba pomyliło ci się z funkcją strcmp() <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />ona porównuje czy jest TAKA SAMA DŁUGOŚĆ i ZAWARTOŚĆ - jeśli wszystko się zgadza to jest ZERO <br /><br />czyli dla <br /><br />[syntax=c]strcmp(&quot;test&quot;,&quot;test&quot;)-----&gt; 0[/syntax]<br /><br />zaś dla <br />[syntax=c]strncmp(&quot;test&quot;,&quot;testdana&quot;)-----&gt; wartość albo mniejsza albo większa od zero[/syntax]<br />w zależności od zawartości stringów tzn różnic pomiędzy nimi<br /><br />ty wziąłeś inną też ważną funkcję do której przekazujemy 3 argumenty - trzeci to długość ... ona ZAWSZE zwróci zero jeśli znajdzie w ramach podanej długości taką samą zawartość - co w tym dziwnego ? <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> Toż każesz sprawdzić pierwszych X znaków czy są równe<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 22 cze 2016, o 19:27</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matekogon]]></name></author>
<updated>2016-06-22T19:01:18+01:00</updated>
<published>2016-06-22T19:01:18+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162768#p162768</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162768#p162768"/>
<title type="html"><![CDATA[pytanie odnośnie funkcji strncmp]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15643&amp;p=162768#p162768"><![CDATA[
Koledzy mam pewien problem ale wcześniej chciałbym dopytać o działanie funkcji strncmp. Porównuje ona dwa ciągi znaków(stringów) i jeśli są  równe to rezultatem jest &quot;0&quot; jeśli są różne to jest jakaś tam liczba.<br /><br />Jaki wynik powinien być w tych przykładach<br />[syntax=c]strncmp(&quot;test&quot;,&quot;test&quot;,4)-----&gt; 0 <br />strncmp(&quot;test&quot;,&quot;testdana&quot;,4)-----&gt;?<br />strncmp(&quot;test&quot;,&quot;test dana&quot;,4)-----&gt;0<br />strncmp(&quot;test&quot;,&quot; danatest&quot;,4)-----&gt;?<br />strncmp(&quot;test&quot;,&quot;dana test&quot;,4)-----&gt;?[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1380">matekogon</a> — 22 cze 2016, o 19:01</p><hr />
]]></content>
</entry>
</feed>