<?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>MID$</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/15279/mid</link><description> Does keil software have an equivalent to basics MID$ 
 
a = &amp;quot;testing&amp;quot; 
b = MID$(a,3,2) //b would = st </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: MID$</title><link>https://community.arm.com/thread/95264?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2002 18:22:51 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bc73f017-51c9-44a7-aead-7e89fa9eb305</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;Yes, I would tend to agree that K&amp;amp;R is more of a &lt;i&gt;reference&lt;/i&gt; manual than a self-instruction tool!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MID$</title><link>https://community.arm.com/thread/54864?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2002 14:24:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:92fe74ae-88cf-4ec3-b187-167fdd9b5c43</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;If you don&amp;#39;t already understand the simple data types in C, you should get a copy of the K&amp;amp;R book and read it to learn C&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
That is probably the very worst book to &lt;b&gt;learn&lt;/b&gt; C from.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MID$</title><link>https://community.arm.com/thread/39500?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2002 12:23:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:18166837-ea6f-4aa9-95e4-4a9ac54486ca</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;You question is kind of like asking what&amp;#39;s the French word for &amp;quot;the&amp;quot;.  It could be &amp;quot;Le&amp;quot;, &amp;quot;La&amp;quot;, or &amp;quot;Les&amp;quot;.  There is no one-to-one conversion.&lt;br /&gt;
&lt;br /&gt;
First, the C language does not have a string type.  So, there are no functions that work on strings the way they do in basic.&lt;br /&gt;
&lt;br /&gt;
Second, in C, you use an array of characters to hold a string.  It is a string, but to the language and to the programmer it is an array of characters.&lt;br /&gt;
&lt;br /&gt;
The following example program will do in C what the mid function in basic does.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;
char a[] = &amp;quot;testing&amp;quot;;
char b[10];

strncpy (b, a[2], 2);
&lt;/pre&gt;
&lt;br /&gt;
If you don&amp;#39;t already understand the simple data types in C, you should get a copy of the K&amp;amp;R book and read it to learn C.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>