struct S {int a; float b; char c[4]; }; struct S s1 = {.c = "abc"};
This gives me at compiler error #29, but it should be supported in C99 right?
interesting , up to now I was not aware of that kind of initialization.
Google led me here linuxprograms.wordpress.com/.../
where a full init is done.
this example does not compile on my Keil too. (C Compiler: Armcc.Exe V4.0.0.524)
So I assume Keil lacks a bit of compatibility here.
You may use this instead, this one compiles
struct S {int a; float b; char c[4]; }; struct S s1 = {0.0,0.0,"abc"};
regards Uli