0

I am trying to construct a binary message packet implemented in C
It needs to escape binary value 0 by appending extra 0 in front of it
//Before escape
data[] = { 1, 2, 3, 4, 5, 0, 6, 7, 8, 9 }
//After escape - value 0 is appended after 0
data[] = { 1, 2, 3, 4, 5, 0, 0, 6, 7, 8, 9 }
My sourc...