Re: Char array copy

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Jan 22, 5:25 pm, lich...@xxxxxxxxx wrote:
Hello

I've got a an unsigned char array

buffer[10] ={0x10,0x10,0x00,0x00,0x00,0x40,0x72,0x10,0x50,0x90}

Then I do:

char * msg = buffer;

After that I pass msg to a method, but the method only recieves:

{0x10,0x10}

What am I doing wrong? How can I pass the full buffer content to the
method?

Thanks a lot.

Carlos

Maybe could be:
unsigned char* msg = buffer
instead char* msg buffer

But better post your function
.



Relevant Pages