<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>comparing two arrays-values</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/17395/comparing-two-arrays-values</link><description> hi, 
 
i have a xdata unsigned char* a_1[210] 
and unsigned char* a_2[210] 
 
Thea are including string value like &amp;quot;21:32 04:34 xyz&amp;quot; 
 
how can i compare this arrays? 
 
what i mean is something like 
 
if (a_1[0] == a_2[0] { 
 // do something 
} 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: comparing two arrays-values</title><link>https://community.arm.com/thread/43055?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2004 08:42:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ada97161-2596-4524-b65f-e36295954a4c</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;Thea are including string value like &amp;quot;21:32 04:34 xyz&amp;quot;&lt;br /&gt;
how can i compare this arrays?&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
The standard &amp;#39;C&amp;#39; library provides functions like strcmp already mentioned for doing simple text comparisons.&lt;br /&gt;
&lt;br /&gt;
However, if you want to interpret these strings as times, and compare their time values (eg, &amp;quot;earlier than&amp;quot; or &amp;quot;later than&amp;quot;), you will have to write your own comparison functions.&lt;br /&gt;
&lt;b&gt;Hint:&lt;/b&gt; start with the most-significant digits...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: comparing two arrays-values</title><link>https://community.arm.com/thread/43056?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2004 08:34:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b1ac2533-710f-4712-b2a7-942c4644145d</guid><dc:creator>Jay Daniel</dc:creator><description>&lt;p&gt;Take a look in the manual at the function strcmp().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>