Search:

Type: Posts; User: sef0

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    2,005

    Actually, matsp, you were absolutely correct when...

    Actually, matsp, you were absolutely correct when you pointed me to the 'unsigned'.
    It fixed my problem!



    unsigned char fixed[] = "\xcd\xf1\x12\xbf";


    Thanks
  2. Replies
    8
    Views
    2,005

    but if I do: for(i=0;i

    but if I do:



    for(i=0;i<1028;i++) {
    printf("%02x",newarray[i]);
    }


    I don't get cdf112bf cdf112bf cdf112bf cdf112bf ... 257 times
  3. Replies
    8
    Views
    2,005

    [SOLVED]How to 'replicate' an array of hex values?

    I have a set of 4 fixed bytes that i put in an array:



    char fixed[] = "\xcd\xf1\x12\xbf";


    Then I want to fill another newarray[1028] with the values of the array above.
    (ie 257 X fixed[]...
  4. Replies
    5
    Views
    2,488

    Neither. I'm going to use ...

    Neither. I'm going to use


    memcpy(&myMem[225-strlen(myArray)],myMem,strlen(myArray));


    But the problem I encounter is on the memset();
    I don't know how to pass an array as second argument....
  5. Replies
    5
    Views
    2,488

    pass array to memset

    Hi,



    #include <stdio.h>
    #include <string.h>

    char myArray[] =
    "\x31\x32\x31\x32\x31\x32x31\"
    "\x32\x32\x43\x54\x65\x78\x6e\x61";
Results 1 to 5 of 5