• 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...
  • Problem with structs as return values
    I am using functions, which returns structs. This shouldn't be a problem in C. And it works mostly. But are there contexts where this is not allowed? Maybe there a conflicts because those structs...
  • struct definition problem
    Hi, I'm using KEIL uVision2 V2.20a, This definition doesn't work, anyone know why ? Usually I'm using this to access each bit separatly in a byte, rather than using shifting ans masking. In my MPLAB...
  • Problems with struct&graphic library.
    Hello, I'm trying to display a menu on my device, with str710 mcu. To do that, I create use structs to hold the variables and display them later. My structs look like this: typedef const struct...
  • union/struct problem
    Hello, it works in devcpp (as c project) but not working in Keil. What is my fault. output must be "12345" but it is not. typedef union { u8 Reg8[5]; struct { u8 Select; u32 Value32; ...