I'm dealing with the following struct:
typedef PACKED struct { word len; /* # of bytes to log (including len)*/ word type; /* What kind of data is in this pkt */ qword time; /* What time it was generated */ byte data[MAX_DATA_BUFFER_SIZE]; } log_mobile_data_type; My question is, what exactly is that last member of the struct? Is a member with a size equal to MAX_DATA_BUFFER_SIZE, or just 1 (byte)? And once I read actual data into the "data" member, does the "data" member represent the actual data, or is it just a pointer to it? Thanks!
sizeofand check the result? That would answer your question, would it not?