• Array initialization inside struct
    Hello, I try compile this code (.c) with --c99 option struct sx { char c; char a[]; }; static struct sx xx = { 1, {[5] = 0} }; and have error error: #146: too many initializer values How...
  • Initializing array of structs
    Hello, I have an array of structs, which I would like to initialize at startup, but to my surprise this gives me a compiler syntax error: I do as follows: typedef volatile struct Timer {...
  • Initializing array of structs
    Hello, I have an array of structs, which I would like to initialize at startup, but to my surprise this gives me a compiler syntax error: I do as follows: typedef volatile struct Timer {...
  • Array initialization inside struct
    Hello, I try compile this code (.c) with --c99 option struct sx { char c; char a[]; }; static struct sx xx = { 1, {[5] = 0} }; and have error error: #146: too many initializer values How...
  • array of structs with fixed content
    Hi you all. I need to creat an LCD based user interface. Therefore , I decided to use a struct for each LCD menu: typedef struct Menu { char lcd_first_line[16]; char lcd_second_line[16]; struct...