Hey I wanted to know how to do an input form the terminal or like user stdin stuff to convert it into a hex. hopefully more
basically i want it to be like
>Input Hex: 123456
unsigned char hex[3];
.....convert?
/*hex[0] = 12;
hex[1] = 34;
hex[2] =56;
*/ // Thats what the arrays would equal
printf(" x02: x02:x02\n", hex[0],hex[1],hex[2]);
i know itoa() might do it but that converts it into a int so iono if it would really work the same