<?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>Pointer to array in a structure?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27908/pointer-to-array-in-a-structure</link><description> 
hello, 

 
i have a simple little structure like this 

 
unsigned char index; 

 
struct tag { 
unsigned char a[20]; 
unsigned char b[20]; 
unsigned char c 
}; 

 
then i declare a pointer like this 

 
struct tag TAG_PTR; 

 
it seems that TAG_PTR</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/155151?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2010 22:40:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1d68ad55-d07a-4246-ad74-22ee4e3258c6</guid><dc:creator>must now leave Zeusti</dc:creator><description>&lt;p&gt;&lt;p&gt;
it is not important where you started&lt;/p&gt;

&lt;p&gt;
it is important where you decide to go&lt;/p&gt;

&lt;p&gt;
Yo&amp;#39;re freind forever.&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;

&lt;p&gt;
end program. { good buy }&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/154720?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2010 22:22:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:843d9ff5-b5f0-4f70-9f78-202a79a0f545</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Dan,&lt;/p&gt;

&lt;p&gt;
I seldom read C51 threads, so maybe I missed something. (I read
this thread because it looks like an opportunity to enhance my C
programming skill.)&lt;/p&gt;

&lt;p&gt;
If you say so,&lt;br /&gt;
&lt;i&gt;&amp;quot;&amp;lt;whatever&amp;gt; Zeusti&amp;quot;, recognized by most as a troll
here.&lt;/i&gt;&lt;br /&gt;
then I will re-consider my thoughts.&lt;/p&gt;

&lt;p&gt;
But it would still be nice that Zeusti can change his way treating
Tamir.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/154204?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2010 21:00:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ee6ac48a-bbf6-4cb3-b101-cf8176c7b77b</guid><dc:creator>ashley madison</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;Sorry for posting something stupid.&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
I would not call it &amp;quot;stupid&amp;quot;, but merely unfortunate consideration
to the writings of &amp;quot;&amp;lt;whatever&amp;gt; Zeusti&amp;quot;, recognized by most as a
troll here. A search for it (Zeusti) should give you enough pause in
the future to avoid entertaining it.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/153605?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2010 19:22:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:01dbb7dc-397d-4ec1-a840-d84b83505799</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
And also, I got a lot of helps from Tamir, so I believe that
Tamir&amp;#39;s posts are very helpful.&lt;/p&gt;

&lt;p&gt;
Sorry for posting something stupid.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/148427?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2010 19:16:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b022ae1c-e9df-45eb-bce5-04308cc54e02</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Zeusti,&lt;/p&gt;

&lt;p&gt;
(Sorry for my very limited English Skill.)&lt;/p&gt;

&lt;p&gt;
There is a Read-Only thread discussing:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/forum/16566/"&gt;http://www.keil.com/forum/16566/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&lt;br /&gt;
Author&lt;br /&gt;
Cpt. Vince&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;It seems to me that many of the &amp;#39;regular&amp;#39; contributors are very
savvy in the art of embedded design. I was wondering just what
projects they are doing, or have done in the past that are worthy of
mentioning?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;I think our readers might be interested in such works, and give
the casual reader something to ponder: especially since they are
taking advice from these &amp;#39;regular&amp;#39; contributors.&lt;br /&gt;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
And it is a pity to me that, you didn&amp;#39;t join that discussing.&lt;/p&gt;

&lt;p&gt;
And I am also very interested in that, where do you come from?
What language is your first language? (I come from Taiwan, I am a
Taiwanese/Cantonese/Chinese.)&lt;/p&gt;

&lt;p&gt;
Besides, I think that,&lt;br /&gt;
&lt;i&gt;do not change or you will no more be the Tapeer we all
know.&lt;/i&gt;&lt;br /&gt;
the above statement shows your wisdom.&lt;br /&gt;
&lt;i&gt;but remember to always read the manuals. we do not want more
deafs.&lt;/i&gt;&lt;br /&gt;
the above statement shows something negative and naughty.&lt;/p&gt;

&lt;p&gt;
As a Chinese, I believe that:&lt;br /&gt;
&lt;i&gt;The sea can hold the water from thousands of rivers, it&amp;#39;s big
because of its capacity.&lt;br /&gt;
A person is great when he can be tolerant and forgiving to many other
people.&lt;/i&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/148166?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2010 03:11:51 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2dae7733-779d-4e2c-91db-42056a96cbc9</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;i was awake all night to keep my team codeing
properley{again}&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Did you at least serve the poor chaps a cup of tea, ah, tutsi?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/147647?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2010 02:58:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:466390a2-b3fc-4130-b230-aba733294351</guid><dc:creator>must now leave Zeusti</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tapeer.&lt;/p&gt;

&lt;p&gt;
very sorry i am late in ansewring you. i was awake all night to
keep my team codeing properley{again}.&lt;/p&gt;

&lt;p&gt;
i must go now. but i will look at yo&amp;#39;re responses when i feel sad
and want a little guffaw.&lt;/p&gt;

&lt;p&gt;
do not change or you will no more be the Tapeer we all know. but
remember to always read the manuals. we do not want more deafs.&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re freind.&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/146613?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 13:21:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:181264aa-6795-48ef-b7a6-a2d886908b5e</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tutsi,&lt;/p&gt;

&lt;p&gt;
Thanks for making my point:&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;you &lt;b&gt;right&lt;/b&gt; like you think you are always
&lt;b&gt;write&lt;/b&gt;.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Aha.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/144973?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 13:19:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:535da154-b094-4fdd-80dd-f7d2602fb278</guid><dc:creator>must now leave Zeusti</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tapeer.&lt;/p&gt;

&lt;p&gt;
it is why i like you and say you are my freind.. you make me laff
so much. you right like you think you are always write. do not
worrey. what you right will not make me anger. even if you try a bit
harder.&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re freind.&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;

&lt;p&gt;
(lovingly reffered to as tutsi by freinds)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/142739?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 13:03:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8dac6fec-6ba5-48c3-ba6e-329094d64a28</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
So what is worse, tutsi, not knowing the ABI or proper English
spelling (do you also make mistakes spelling the names of variables
in your &amp;quot;programs&amp;quot;, tutsi?).&lt;br /&gt;
I have a feeling you get my drift.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/139720?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 12:18:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5522e251-9782-458e-8bb7-e89885888cc4</guid><dc:creator>must now leave Zeusti</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tapeer.&lt;/p&gt;

&lt;p&gt;
i come to the forem when i am not so busy and see what advise my
old freinds are saying. all proffesionals must give advise to the
ones who are new and do not understand dificcult documnets [like abi,
hahaha].&lt;/p&gt;

&lt;p&gt;
but i now am veeeery busy and have to go agin.&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re freind.&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/136297?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 11:59:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:27790ba2-bbcd-456f-8f8f-35e189d6e3fb</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ah, it is Teutsi. I thought we got rid of your charming presence,
but what the hell. BTW: I was very helpful recently! You can blame
work stress if you like.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/126444?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 11:47:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c94e8a43-7816-4ee7-aabc-a3dc6119293c</guid><dc:creator>must now leave Zeusti</dc:creator><description>&lt;p&gt;&lt;p&gt;
Tapeer,&lt;/p&gt;

&lt;p&gt;
i watched for some day and see you still doing the crazy responses
;)&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re friend.&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/116068?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 11:39:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8085b97f-e46d-414c-ab02-24b70b40c5de</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ho sorry, this is a build problem. I missed that. hmm.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/104304?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 11:38:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e0200d82-875f-4647-b90f-11e81ac9348a</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;obviously using the index variable is the problem, but im not
sure how to work around it. Any help would be greatly
appreciated.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Well, I&amp;#39;d start by the obvious - is your index out of range,
maybe? Is your debugger secured, too (sorry for that, no harm
intended...) ?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/78717?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 11:19:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f977e6d2-e764-4d5f-89ff-aa1f7c3f4f92</guid><dc:creator>Tom Stathes</dc:creator><description>&lt;p&gt;&lt;p&gt;
That was a typo, sorry i meant to type&lt;/p&gt;

&lt;p&gt;
struct tag *TAG_PTR;&lt;/p&gt;

&lt;p&gt;
i cant just cut and paste my code sorry. Im working on 2 computers
and the development pc is secured, i can not move data directly from
it to this PC.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pointer to array in a structure?</title><link>https://community.arm.com/thread/58752?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2010 11:00:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:038d7255-6874-4d9d-b1ff-7d7cfccfcac3</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;then i declare a pointer like this&lt;/i&gt;&lt;/p&gt;

&lt;pre&gt;
&lt;i&gt;struct tag TAG_PTR;&lt;/i&gt;
&lt;/pre&gt;

&lt;p&gt;
Like that, you&amp;#39;re &lt;b&gt;not&lt;/b&gt; declaring a pointer at all.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;it seems that TAG_PTR-&amp;gt;c; is valid&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
It&amp;#39;s not.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;obviously using the index variable is the problem&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
No, it&amp;#39;s not. The problem is that you didn&amp;#39;t actually declare
TAG_PTR as a pointer.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>