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?
Only if you have correctly configured the compiler to operate in C99 mode:
www.keil.com/.../armccref_babdhcga.htm
www.keil.com/.../armccref_babibbfi.htm
www.keil.com/.../armccref_BABCFABB.htm
thanx Andy,
so it was just a matter of Please read the manual, as often. the sample compiles fine with --c99 set ;))
ULI
Indeed!
But I think TFM could have been more helpful in pointing out more clearly that C99 is disabled unless specifically requested...
Thanks, It works here too now.. Best regards Jesper