This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: parenthesis while addressing struct member


On Sat, Jul 26, 2014 at 1:43 PM, JoÃl KrÃhemann <weedlight@gmail.com> wrote:
> Further I really believe it should rather be of form like:
>
> &(mutex->__data.__lock)
>
> is it still the same?

Yes. It is still the same. Use `-Wall -pedantic` and you can play
around with the assignments and let the compiler tell you when you get
it wrong.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]