I have a value which is an unsigned char string and I need to to a comparison with a regular char string. How do I convert one value to the other?
Thanks for any help,
TJ
Printable View
I have a value which is an unsigned char string and I need to to a comparison with a regular char string. How do I convert one value to the other?
Thanks for any help,
TJ
just type cast it:
unsigned char *string1;
char *string2;
strcmp( (char *)string1, string2));