Converting ASCII to hex

I'm trying to convert a ascii representation of a mac address like 1122334455667788

That means, you have data like this --

char myArray[17] = {'1', '1', '2', '2', '3', '3', '4', '4', '5', '5', '6', '6', '7', '7', '8', '8', '\0'}; //Is it correct?

or

char myArray[17] = {
0x31, 0x31, 0x32, 0x32, 0x33, 0x33, 0x34, 0x34, 0x35, 0x35, 
0x36, 0x36, 0x37, 0x37, 0x38, 0x38, 0x00
                            };   //Is it correct?

Now, you want like this --

byte nyData[8] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88}; //Is it correct?

Say, your data is --

[code]char myArray[17] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', '\0'}

Now, which one of the following you want?

byte nyData[8] = {0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF};

or

byte nyData[8] = {0x10, 0x32, 0x54, 0x76, 0x98, 0xBA, 0xDC, 0xFE};