Hammer, this is usefull staff but unfortunatelly not related to the question. Those functions convert byte orders in uint32_t /uint16_t variables but hey do not convert char[] to longs
Thanks,...
Type: Posts; User: rastan
Hammer, this is usefull staff but unfortunatelly not related to the question. Those functions convert byte orders in uint32_t /uint16_t variables but hey do not convert char[] to longs
Thanks,...
sorry I made a mistake while posting the code, actually I have "cs"
not "tsC"
Anyway I found the answer:
lv2=*(long*)&(cs);
Thanks to everybody,
Bill
Thanks guys, seems to be working, just because of cuoriosity why the memcpy solution didn't work?
Thanks,
Bill:)
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...