Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Declartation in C

Reply
Thread Tools

Declartation in C

 
 
ldries46
Guest
Posts: n/a
 
      01-20-2011
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

 
Reply With Quote
 
 
 
 
Pavel Borzenkov
Guest
Posts: n/a
 
      01-20-2011
On 2011-01-20, ldries46 <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments