• Array of struct within struct
    Has anyone defined an array of struct inside another struct with C51? I can find no reference document prohibiting it. Yet, when I try to compile following fragment: #include <stdio.h> struct...
  • array content to file
    I'm programming a control application. I would like to capture to step response of the controller. Therefore I write the controller answer to an array in each cycle. After stopping the application I...
  • 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 {...
  • Forums fixed
    The forums have been unavailable for the past day due to a technical issue. Please be aware that any postings made within this time will need to made again. We apologise for any inconvenience caused...