I want the user to enter a MAC address in the format : aa:bb:cc:dd:ee:ff and then I take this in my code as argv[1] for example.
Now how do I store this in an array in hex format?
What I need is the array to look like this:
char temp[6] = { 0xaa,0xbb,0xcc,0xdd,0xee,0xff }
Any ideas?
Use ints to get the values, then you can place them in char array, since they have byte values.