Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: quick question. Am I reading this right? |
| Date | 2014-04-25 08:46 -0700 |
| Organization | None to speak of |
| Message-ID | <ln1twltns8.fsf@nuthaus.mib.org> (permalink) |
| References | <26357b8d-451e-40ae-9b14-61f8ea5b1834@googlegroups.com> |
halfmaddad@gmail.com writes:
> I have encountered this snippet of code:
> screen = xcb_setup_roots_iterator (xcb_get_setup (c)).data;
>
> Is this correct, the results from xcb_get_setup are fed to
> xcb_setup_roots_iterator and the result from this is a struct. And
> this struct's "data" member is then assigned to screen ?
Yes. (It's conceivable, but unlikely, that xcb_setup_roots_iterator()
returns a union rather than a struct.)
My only quibble is that I'd say "result" rather than "results".
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread
quick question. Am I reading this right? halfmaddad@gmail.com - 2014-04-25 08:00 -0700
Re: quick question. Am I reading this right? Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2014-04-25 17:24 +0200
Re: quick question. Am I reading this right? James Kuyper <jameskuyper@verizon.net> - 2014-04-25 11:25 -0400
Re: quick question. Am I reading this right? halfmaddad@gmail.com - 2014-04-25 08:37 -0700
Re: quick question. Am I reading this right? Keith Thompson <kst-u@mib.org> - 2014-04-25 08:46 -0700
csiph-web