I will be dealing with unsigned long long ints as an array of type char[8]. I need it to skip 0-5 as these are reserved characters. After the first 0-5 skip every 0 and mark it with a 1 to mean write out the next 8 bytes(9 bytes total are written). Example if this is fread : 09842658 then output will be :109842658 But if the first number is not a 0 then proceed to encode it: output = 98042658 = 6 and I need it to add a digit to the encode every time it gets to a new power of two, example if the last two chars in the array and skipping over the zeros of the first six: (array element 0,0,0,0,0,0,10)then output = 07 How could I go about this? I do not know what I am doing, I read a lot and thought I knew how to go about this but started to write code and had writer's block. I just can't seem to be able to start coding this and I don't know how to do this. Thank you.