Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1.         typedef union BMPHeader
  2.         {
  3.             unsigned char buf[14];
  4.             struct
  5.             {
  6.                 unsigned char id[2];
  7.                 unsigned int file_size;
  8.                 unsigned char app_specific[4];
  9.                 unsigned int data_offset;
  10.             } fields;
  11.         } BMPHeader;
  12.  
  13.             BMPHeader hdr;
  14.             int k = sizeof(hdr); <--- 16???????
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement