Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > strange thing
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 4232 of 4370
Post > Topic >>

strange thing

by _kamsta <kamsta.exe@[EMAIL PROTECTED] > Aug 3, 2008 at 04:49 PM

piece of code

  p_header->u16_headId=*((uint16_t *)&au8_buf[0]);
  p_header->u16_dataId=*((uint16_t *)&au8_buf[2]);
  p_header->u16_devClass=*((uint16_t *)&au8_buf[4]);
  p_header->u16_firmRev=*((uint16_t *)&au8_buf[6]);
  p_header->u32_devId=*((uint32_t *)&au8_buf[8]);
printf("print 1\n");
  p_header->u32_dataSize=*((uint32_t *)&au8_buf[12]);
printf("print 2\n");
  p_header->u32_dataCRC=*((uint32_t *)&au8_buf[16]);
  p_header->u32_headerCRC=*((uint32_t *)&au8_buf[60]);

on the output i have only print 1
is any logic explanation why i does not have print 2
is this my ide problem or its something i shuld know
Raegerd
-k
 




 6 Posts in Topic:
strange thing
_kamsta <kamsta.exe@[E  2008-08-03 16:49:39 
Re: strange thing
"Jim Langston"   2008-08-03 17:18:58 
Re: strange thing
"Daniel T." <  2008-08-03 20:47:46 
Re: strange thing
_kamsta <kamsta.exe@[E  2008-08-03 17:57:21 
Re: strange thing
Barry Schwarz <schwarz  2008-08-03 18:30:53 
Re: strange thing
Ben Bacarisse <ben.use  2008-08-04 03:04:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 16:02:17 CST 2008.