<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Как перевести строку с hex значением в int? - Arduino				            </title>
            <link>https://microtechnics.ru/community/arduino/kak-perevesti-stroku-s-hex-znacheniem-v-int/</link>
            <description>Обсуждение вопросов, посвященных программированию микроконтроллеров, разработке электроники и не только.</description>
            <language>ru-RU</language>
            <lastBuildDate>Sun, 08 Mar 2026 11:07:30 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>НА: Как перевести строку с hex значением в int?</title>
                        <link>https://microtechnics.ru/community/arduino/kak-perevesti-stroku-s-hex-znacheniem-v-int/#post-2190</link>
                        <pubDate>Sat, 02 Sep 2023 08:02:27 +0000</pubDate>
                        <description><![CDATA[Привет, через strtol:
int result = (int)strtol(hex, NULL, 0);
Если задано без &quot;0x&quot;, то лучше:
char *hex = &quot;1234ABCD&quot;;
int number = (int)strtol(hex, NULL, 16);]]></description>
                        <content:encoded><![CDATA[<p>Привет, через <a href="https://en.cppreference.com/w/c/string/byte/strtol">strtol</a>:</p>
<pre contenteditable="false">int result = (int)strtol(hex, NULL, 0);</pre>
<p>Если задано без "0x", то лучше:</p>
<pre contenteditable="false">char *hex = "1234ABCD";
int number = (int)strtol(hex, NULL, 16);</pre>
<p> </p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/arduino/">Arduino</category>                        <dc:creator>Aveal</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/arduino/kak-perevesti-stroku-s-hex-znacheniem-v-int/#post-2190</guid>
                    </item>
				                    <item>
                        <title>Как перевести строку с hex значением в int?</title>
                        <link>https://microtechnics.ru/community/arduino/kak-perevesti-stroku-s-hex-znacheniem-v-int/#post-2189</link>
                        <pubDate>Sat, 02 Sep 2023 07:14:34 +0000</pubDate>
                        <description><![CDATA[Добрый день, у меня есть строка в таком виде:
char *hex = &quot;0x1234ABCD&quot;;
Как можно перевести ее в тип int, чтобы получить число?]]></description>
                        <content:encoded><![CDATA[<p>Добрый день, у меня есть строка в таком виде:</p>
<pre contenteditable="false">char *hex = "0x1234ABCD";</pre>
<p>Как можно перевести ее в тип int, чтобы получить число?</p>]]></content:encoded>
						                            <category domain="https://microtechnics.ru/community/arduino/">Arduino</category>                        <dc:creator>RAMT</dc:creator>
                        <guid isPermaLink="true">https://microtechnics.ru/community/arduino/kak-perevesti-stroku-s-hex-znacheniem-v-int/#post-2189</guid>
                    </item>
							        </channel>
        </rss>
		