色婷婷AⅤ一区二区三区|亚洲精品第一国产综合亚AV|久久精品官方网视频|日本28视频香蕉

          新聞中心

          嵌入式offsetof的使用

          作者: 時(shí)間:2016-12-01 來源:網(wǎng)絡(luò) 收藏
          #include

          typedef struct
          {
          unsigned int array[2];
          unsigned int a;
          unsigned char b;
          unsigned int c;
          unsigned int d;
          float f;
          }foo;

          本文引用地址:http://cafeforensic.com/article/201612/324483.htm

          void main(void)
          {
          int addr=0;
          addr = f(foo,c);
          P1 =addr;
          addr = f(foo,f);
          P1 =addr;
          addr = f(foo,a);
          P1 =addr;
          addr = offsetof(foo,d);
          P1 =addr;
          addr = offsetof(foo,b);
          P1 =addr;
          while(1);
          }



          關(guān)鍵詞: offseto

          評論


          技術(shù)專區(qū)

          關(guān)閉