tb_p->data
the pointer stored in data
.
(struct mac_tb_ind *) (tb_p->data)
typecasts the pointer so the compiler knows how to interpret it
((struct mac_tb_ind *) (tb_p->data))->first_bit = 0;
the value stored in first_bit
is set to 0
More Related Contents:
- Structure size so big, need optimization
- Self-inherited structure definition in C++
- Call an array from within an array of structs in c++
- How do I compare chars (or strings) using void functions, also comparing chars that were taken from a struct array
- C/C++ Struct vs Class
- What are the differences between struct and class in C++?
- Struct padding in C++
- Why do C and C++ support memberwise assignment of arrays within structs, but not generally?
- What does C++ struct syntax “a : b” mean
- Iterating over a struct in C++
- Iterate through Struct and Class Members [duplicate]
- Is the memory allocated for struct members continguous? What if a struct member is an array?
- How to convert string to IP address and vice versa
- What is the default value for C++ class members
- Is it legal to index into a struct?
- Is the size of a struct required to be an exact multiple of the alignment of that struct?
- Class vs Struct for data only?
- When extending a padded struct, why can’t extra fields be placed in the tail padding?
- C++ Structure Initialization [duplicate]
- Struct Constructor in C++?
- too many initializers for ‘int [0]’ c++
- Can a C++ compiler re-order elements in a struct
- sizeof(struct) returns unexpected value
- How can I use a custom type as key for a map in C++?
- Struct inheritance in C++
- default visibility of C++ class/struct members
- What is the meaning of `struct X typedef` vs. `typedef struct X`?
- How to initialize a struct to 0 in C++
- What is the meaning of double curly braces initializing a C-struct?
- No == operator found while comparing structs in C++