iam programming in C++ and im stuck at this problem. How to convert string literally to char* in bytes. Iam not very good in working with char and strings. I want to make function that if i call it, it will look like:
char *output = MyFunct("0102030c");
and the output will be same if i would do something like this:
char test[] = {0x01, 0x02, 0x03, 0x0c};
i have no idea how would i make that, thanks for any suggestions :)