Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   Declartation in C (http://www.velocityreviews.com/forums/t742315-declartation-in-c.html)

ldries46 01-20-2011 12:27 PM

Declartation in C
 
I am not an experienced programmer
I am trying to understand a C program
so I wonder what does
guint printer_set : 1;
mean and where can I find an explanation.

I think this is a declaration but then I donīt understand the : 1


Pavel Borzenkov 01-20-2011 12:37 PM

Re: Declartation in C
 
On 2011-01-20, ldries46 <bertus.dries@planet.nl> wrote:
> I am not an experienced programmer
> I am trying to understand a C program
> so I wonder what does
> guint printer_set : 1;
> mean and where can I find an explanation.
>
> I think this is a declaration but then I don?t understand the : 1
>


You can read about it here:
http://publications.gbdirect.co.uk/c...bitfields.html


All times are GMT. The time now is 01:01 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.