• The length of struct
    Hi, I define a struct like below: typedef struct { unsigned type :6; unsigned delete :1; unsigned mask :1; }UnitType; I think the length of this struct is 1 byte, but to my surprise,...
  • Length of a typedef enum
    I am trying to pass the length of a typedefinition to an integer by using the sizeof function. At the moment I only get the value 4 passed back no matter the number of items are in the typedef. This...
  • Run length encoding
    Hi, I've been recently playing around with file compression and encryption. Ikakjha js azY.
  • malloc with variable length
    Hi, I'm using arm cortex, KEIL, FreeRTOS. The problem I met is: after many times of running the following malloc function, the heap was used out, couldn't allocat 1KB space any more. char Str =...
  • placing code at specific address
    in main() I have two pieces of code - the first one needs to start at the beginning of main and it is very small the second one will be placed just after at the beginnig adddress + 200h can you tell...