Ask about how to change from unsigned char to char

This is a discussion on Ask about how to change from unsigned char to char within the C++ Programming forums, part of the General Programming Boards category; I want to ask about how to change from unsigned char to char. This below is some part of my ...

Ask about how to change from unsigned char to char

I want to ask about how to change from unsigned char to char. This below is some part of my code which wrong. Do you know how to correct my code for changing unsigned char to char. Thank you very much.

ok, the first way this code is wrong is that you never allocated memory for char *argv. it is an uninitialized pointer. so you will have a memory access error. Second, once you have allocated the memory, your assignment probably needs to cast. as in the following: