I am a student, I am programming network practical work with the C language, my question is: how can I read MAC address (xx:xx:xx:xx:xx:xx) from the console, and store it in a table, I tried this but it isn't easy to manipulate them after.
Are there any better suggestions?
char MAC[18] = {""};
printf("\n\tEntrez l'@ Mac (XX:XX:XX:XX:XX:XX) en Hex :");
fgets(MAC,sizeof(MAC),stdin); //read MAC