I have these two methods in order to set the bits of a memory block to zero.
First
SecondCode:char newHeader[BF_BLOCK_SIZE]; //.... //Set up new header memset(newHeader,0,BF_BLOCK_SIZE); //...
Trying both i see no difference.Code:char newHeader[BF_BLOCK_SIZE]; //... //Set up new header for(i=0;i<BF_BLOCK_SIZE;i++) newHeader[i]=0; //...
Is there something that diversify those two methods or it's just the same way ?