The arrow notation is used when dereferencing a pointer to a structure. On function calling it is often more efficient to pass a pointer to a structure than passing (a copy of) the structure.
To dereference the structure you could write code like
Code:
(*cb).buf[1]
Note, the parentheses are necessary here because the . operator has higher precedence than the indirection operator, *. We must first dereference the pointer, and then select its appropriate member.
Since dereferencing structures like this is a common task they have defined a special pointer operator, called arrow, and the above code becomes:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum