Search:

Type: Posts; User: rastan

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    4,377

    Hammer, this is usefull staff but unfortunatelly...

    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,...
  2. Replies
    10
    Views
    4,377

    sorry I made a mistake while posting the code,...

    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
  3. Replies
    10
    Views
    4,377

    Thanks guys, seems to be working, just because of...

    Thanks guys, seems to be working, just because of cuoriosity why the memcpy solution didn't work?

    Thanks,
    Bill:)
  4. Replies
    10
    Views
    4,377

    char string to long conversion (more problems)

    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...
Results 1 to 4 of 4