Search:

Type: Posts; User: dotslashsatan

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    1,412

    hmm another Question: how do i get the length of...

    hmm another Question: how do i get the length of a packet with null's in example of a packet:

    <"name"><null><endian><data><null>

    if i do strlen(packet) it returns 4 when it's really > 4 :(
  2. Replies
    14
    Views
    1,412

    hmm can some one tell me if these functions look...

    hmm can some one tell me if these functions look ok please?
    thanks



    int BigEndian8(char *data,int start)
    {
    unsigned short endian;
    endian = data[start];
    return endian;
  3. Replies
    14
    Views
    1,412

    sorry about the confusin and wasteing your time,...

    sorry about the confusin and wasteing your time, i've given up need sleep
  4. Replies
    14
    Views
    1,412

    ah sorry about that last post ...

    ah sorry about that last post

    printf("%d",0x0001) - works so how would i do

    char *HexStr="0001";
    printf("%d%s","0x",HexStr)?
  5. Replies
    14
    Views
    1,412

    printf("%d",0x0100"); works but how would i make...

    printf("%d",0x0100"); works but how would i make it use a string like printf("%d%s","0x","0100); ?
  6. Replies
    14
    Views
    1,412

    hex

    converting a Hex string to integer, sorry
  7. Replies
    14
    Views
    1,412

    confused!

    i don't understand 00 = to the left right which = 0 and 01 = to the right so 00 < 01
    so how can you do that ? confusing ! shouldnt there be a function for it to make life easyer?
  8. Replies
    14
    Views
    1,412

    Endian problem

    how would i convert a Hex Endian to an int example:

    0100 = 256
    0001 = 1

    etc...

    please help!!
Results 1 to 8 of 8