<?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>struct function help</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/19581/struct-function-help</link><description> Hello, 
 I have problem with &amp;quot;struct&amp;quot; function. I cannot use array inside struct function as following code. 
 
 struct test{
	int k1;
	char c1;
	unsigned char str1[10]={0xf9,0xa4,0xb0,0x99};
}st1; 
 
Any help will be appreciated. 
Thank in advanced</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: struct function help</title><link>https://community.arm.com/thread/45211?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2005 02:23:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c4f14d38-95a2-4b89-a138-a7cb70fe3d3b</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;I have problem with &amp;#39;struct&amp;#39; function.&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
It sounds like you actually have basic problems with the &amp;#39;C&amp;#39; programming language.&lt;br /&gt;
You need to step back and get a good &amp;#39;C&amp;#39; textbook!&lt;br /&gt;
&lt;br /&gt;
NB: &amp;quot;struct&amp;quot; is not a &amp;quot;funcion&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You need to initialise the structure as a whole, not the individual elements within it - see that &amp;#39;C&amp;#39; textbook!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>