[Tinyos-help] Problem with autoincrement

Roger Potter wsnwork at yahoo.es
Wed Oct 1 03:43:57 PDT 2008


Hello,

I'm developing an application and I had found that the next portion of code only increment "i" until 10 and then reset the value of "i" to 0.
The piece of code is :  
  for(i=0;i<size;i++){
            blocks[(i*4)]=hash[i]>>24;
            blocks[(i*4)+1]=hash[i]>>16 & 0x0FF;
            blocks[(i*4)+2]=hash[i]>>8 & 0x0ff;
            blocks[(i*4)+3]=hash[i] & 0x0FF;

        } 




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081001/d28c18ad/attachment.htm 


More information about the Tinyos-help mailing list