PArsing command Line inputted string into char array in C
===

I am trying to write a c program where the input from command line is of the form 0x1234aabb.
this definately comes in the program as a char *.. now, i want to store this input in the form of char a[]={0x12, 0x34, 0xaa, 0xbb}.
Please help.