The ->
syntax is used on block
because block
is a pointer (its type is NCB*
, which means "pointer to NCB
").
Whether or not the NCB
structure contains any pointers as fields does not matter because block->ncb_command
does not dereference the ncb_command
field - it dereferences block
, which is a pointer.