I get a string which is given as an argument to a function like e.g. 00112233445566778899aabbccddeeff and I need to make an unsigned char array of it which looks like this:
unsigned char array[16]= {0x00 ,0x11 ,0x22 ,0x33 ,0x44 ,0x55 ,0x66 ,0x77 ,0x88 ,0x99 ,0xaa ,0xbb ,0xcc ,0xdd ,0xee ,0xff};
I have no idea how to do it, tried some things with strcpy and thought about hex but this works only with << or >> as I know so I don't think I know how to apply it here. Anyone could help please?