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
Type: Posts; User: sef0
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
but if I do:
for(i=0;i<1028;i++) {
printf("%02x",newarray[i]);
}
I don't get cdf112bf cdf112bf cdf112bf cdf112bf ... 257 times
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[]...
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....
Hi,
#include <stdio.h>
#include <string.h>
char myArray[] =
"\x31\x32\x31\x32\x31\x32x31\"
"\x32\x32\x43\x54\x65\x78\x6e\x61";