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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-11-06T12:12:00+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=13454&amp;mode</id>
<entry>
<author><name><![CDATA[tomson5]]></name></author>
<updated>2015-11-05T20:42:18+01:00</updated>
<published>2015-11-05T20:42:18+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144516#p144516</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144516#p144516"/>
<title type="html"><![CDATA[Re: dzielenie stringa wcześniej połączonego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144516#p144516"><![CDATA[
Dziękuję bardzo. Operacja się udała pacjent podzielony <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=2382">tomson5</a> — 5 lis 2015, o 20:42</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[xor]]></name></author>
<updated>2015-11-06T12:12:00+01:00</updated>
<published>2015-11-05T20:08:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144507#p144507</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144507#p144507"/>
<title type="html"><![CDATA[Re: dzielenie stringa wcześniej połączonego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144507#p144507"><![CDATA[
~<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1774">xor</a> — 5 lis 2015, o 20:08</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tomson5]]></name></author>
<updated>2015-11-05T19:03:26+01:00</updated>
<published>2015-11-05T19:03:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144488#p144488</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144488#p144488"/>
<title type="html"><![CDATA[Re: dzielenie stringa wcześniej połączonego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144488#p144488"><![CDATA[
Poradziłem sobie z kopiowaniem do &quot;przecinka&quot;<br /><br />[syntax=c]char *e;<br />   int poz_przecinka;<br /><br />   e = strchr(odebrane_str, ',');<br />   poz_przecinka = (int)(e - odebrane_str);<br /><br />   char impulsy&#91;2&#93; = &quot;&quot;;<br />   strncpy( impulsy, odebrane_str, poz_przecinka );[/syntax]<br /><br />Nie wiem natomiast jak skopiować dane od przecinka.<br />Jakieś sugestie??<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2382">tomson5</a> — 5 lis 2015, o 19:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Marvinn8686]]></name></author>
<updated>2015-11-04T09:17:38+01:00</updated>
<published>2015-11-04T09:17:38+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144334#p144334</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144334#p144334"/>
<title type="html"><![CDATA[Re: dzielenie stringa wcześniej połączonego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144334#p144334"><![CDATA[
Znajdujesz pozycję (index) przecinka w wynikowym stringu<br /><!-- m --><a class="postlink" href="http://www.cplusplus.com/reference/cstring/strchr/" >http://www.cplusplus.com/reference/cstring/strchr/</a><!-- m --><br /><!-- m --><a class="postlink" href="http://stackoverflow.com/questions/3217629/in-c-how-do-i-find-the-index-of-a-character-within-a-string" >http://stackoverflow.com/questions/3217 ... n-a-string</a><!-- m --><br />Kiedy ją masz, łatwo skopiować z wynikowego stringa pierwszą część (od początku do indeksu) i drugą (od indeksu  to końca).<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1232">Marvinn8686</a> — 4 lis 2015, o 09:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tomson5]]></name></author>
<updated>2015-11-04T07:46:58+01:00</updated>
<published>2015-11-04T07:46:58+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144331#p144331</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144331#p144331"/>
<title type="html"><![CDATA[Re: dzielenie stringa wcześniej połączonego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144331#p144331"><![CDATA[
Dzięki już mam te stringi z przecinkiem. Muszę tylko sprawdzić czy wszystko działa w pełnym zakresie zmiennych. <br />Jak teraz zabrać się za ich  poprawne rozdzielenie?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2382">tomson5</a> — 4 lis 2015, o 07:46</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rskup]]></name></author>
<updated>2015-11-03T22:39:55+01:00</updated>
<published>2015-11-03T22:39:55+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144315#p144315</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144315#p144315"/>
<title type="html"><![CDATA[Re: dzielenie stringa wcześniej połączonego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144315#p144315"><![CDATA[
Możesz zrobić poprzez:<br />- połączenie pierwszej wartości za pomocą funkcji strcat() ze stringiem zawierającym &quot;,&quot;<br />- zamieniając ostatni znak pierwszego stringa s[x] o wartości 0 na separator s[x] = ',' i dodając znak końca s[x+1] = 0 (musisz sprawdzić jaką masz długość stringa poprzez strlen() by znać x)<br /><br />-- <br />Pozdrawiam,<br />Robert<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3427">rskup</a> — 3 lis 2015, o 22:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tomson5]]></name></author>
<updated>2015-11-04T07:43:55+01:00</updated>
<published>2015-11-03T21:34:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144307#p144307</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144307#p144307"/>
<title type="html"><![CDATA[Re: dzielenie stringa wcześniej połączonego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144307#p144307"><![CDATA[
Właśnie sobie to uświadomiłem gdy je połączyłem. <br />W jaki sposób można wstawić ten przecinek?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2382">tomson5</a> — 3 lis 2015, o 21:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rskup]]></name></author>
<updated>2015-11-03T21:28:47+01:00</updated>
<published>2015-11-03T21:28:47+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144304#p144304</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144304#p144304"/>
<title type="html"><![CDATA[Re: dzielenie stringa wcześniej połączonego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144304#p144304"><![CDATA[
A nie możesz dodać przecinka przy łączeniu?<br /><br />Jak łączysz stringi o zmiennej długości bez użycia separatora, to ciężko potem znaleźć miejsce gdzie powinno być podzielone.<br />Czy liczba 12345678 to połączony 1234 i 5678 czy może 12345 i 678 lub 123 i 45678?<br /><br />-- <br />Pozdrawiam,<br />Robert<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3427">rskup</a> — 3 lis 2015, o 21:28</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tomson5]]></name></author>
<updated>2015-11-03T21:16:34+01:00</updated>
<published>2015-11-03T21:16:34+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144300#p144300</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144300#p144300"/>
<title type="html"><![CDATA[dzielenie stringa wcześniej połączonego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13454&amp;p=144300#p144300"><![CDATA[
Witam<br />Przekonwerterowałem dwie zmienne liczbowe na stringi a następnie je połączyłem jak na poniższym kodzie.<br />[syntax=c]itoa(wynik_adc, wynik_adc_str, 10); <br />    itoa(suma_impl, suma_impl_str, 10);<br />strcat(suma_impl_str, wynik_adc_str); <br /><br />suma_impl_str; // stringi połączone[/syntax]<br /><br />Wszystko przebiegło pomyślnie ale czuję że zapędziłem się w kozi róg. Zastanawiam się w jaki sposób teraz mogę je z powrotem rozdzielić. Potrzebuję miedzy nimi przecinka??<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2382">tomson5</a> — 3 lis 2015, o 21:16</p><hr />
]]></content>
</entry>
</feed>