So if you know better places where i can ask this question do let me know.
www.gamedev.net is a good place.

Binary operators are allowed only for integer data you can cast this void pointer to char or unsigned char (byte). If you are encoding text data just change parameter types from void* to char*.

P.S. I think it should be if(ip == ipl) not if(ip = ipl) :?: