To send integer you might set
response->DATA[0] = 'F';
response->DATA[1] = 'F';
response->DATA[2] = 'F';
response->DATA[3] = 'F';
as integers and on the other side you deserialise this response
so
int myint=1234567;
for(i=0;i<4;i++)
{
response->DATA[i]=((myint & (0xFF << (i*8)))>>(i*8));
}
and on other side when you deserialise
int myint=0;
for(i=0;i<4;i++)
{
myint |= (response->DATA[i])<<(i*8);
}
This way code is endian dependless and it only depends on fact that reciver has integers of size 32 bits.
If you know that both sides uses same endianess you can apply union when you serialise/deserialise.
http://en.wikipedia.org/wiki/Endianness
http://www.wellho.net/resources/ex.php4?item=c209/union.c