Question
Finding sizeof(structure) in Atollic TrueSTUDIO
Hello,
I am programming a SMT32 chip and I am trying to find the size of a defined structure like the code snippet below. From reading online, using sizeof() on a structure can yield different results on different IDEs. When I use sizeof(struct some_struct) in Atollic TrueSTUDIO, I get an error. What do I use to return the size of a structure in Atollic TrueSTUDIO?
struct some_struct{
UINT8 variable1;
UINT8 variable2
UINT32 variable3
};
main(void){
UINT8 strucutre_size;
strucutre_size=sizeof(struct some_struct);
}