Possible Duplicate:
What does 'unsigned temp:3' means
I am writing an iOS app and have to deal with some legacy plain ole C:
typedef struct {
int32_t tid;
int32_t pos;
uint32_t bin:16, qual:8, l_qname:8;
uint32_t flag:16, n_cigar:16;
int32_t l_qseq;
int32_t mtid;
int32_t mpos;
int32_t isize;
} bam1_core_t;
My question involves the line uint32_t bin:16, qual:8, l_qname:8;
can someone please tell me how to access these fields that appear to me some sort of bit-vector sub-field of a 32-bit int.
Thanks,
Doug