<br><br><div class="gmail_quote">2011/7/18 V13 <span dir="ltr"><<a href="mailto:v13@v13.gr">v13@v13.gr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Monday 18 of July 2011, V13 wrote:<br>
> Xoris to .link.menu prospathei na kanei initialization me basi to proto<br>
> stoixeio toy union kai exo thn entyposi pos ayto einai standard.<br>
<br>
</div><div><div></div><div class="h5">Yeap... einai. Des edo:<br>
<br>
<a href="http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Fstrin.htm" target="_blank">http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Fstrin.htm</a><br>
</div></div></blockquote></div><br><br>Thanks Θα το δοκιμάσω μόλις γυρίσω στο γραφείο. Αναγκαζόμουν να δημιουργώ task που να καλεί απλά τα υπομενού. Και αυτά γιατί ο μάγκας ο compiler έλεγε τα παρακάτω:<br><br>**** copy from MDK-ARM doc******<br>
Designated initializers<br><br>In C90, there is no way to initialize specific members of arrays, structures, or unions. C99 supports the initialization of specific members of an array, structure, or union by either name or subscript through the use of designated initializers. For example:<br>
<br>typedef struct<br>{<br> char *name;<br> int rank;<br>} data;<br>data vars[10] = { [0].name = "foo", [0].rank = 1,<br> [1].name = "bar", [1].rank = 2,<br> [2].name = "baz",<br>
[3].name = "gazonk" };<br><br>Members of an aggregate that are not explicitly initialized are initialized to zero by default.<br><br>Το οποίο στην δικιά μας περίπτωση δεν έκανε και πολύ δουλειά.<br>
<br>Χρήστος<br>