Hello, Im a newbie to the forum but i have an intermediate knowledge of C programming. I am having some trouble getting a hex input of 16-byte into an array. So basically i've just finished doing an AES model in C and I need to find a way to allow the user to enter the 16-byte data in an array( for ...
If you want ./myprog 0xFF then that is obvious and unambiguous, and it will work. Sure, you have to convert in the program, but so what? ./myprog \xFF as an attempt to get a single character in argv[1] is problematic to say the least. The next question is "why do you want to do this?"