Hello, I have the following question:
I am trying to fit a long variable into char string and then convert it back to long (need this to send that string over the network)
char cs[4];
long lv1=12345;
long lv2;
memcpy(cs, &lv1, 4);
lv2=(long)(tsC);
printf("lv2: %lu ", lv2);
for some reason this doesn't work
Thanks in advance,
Bill