Reading hex values from a text file - what am I doing wrong?
I'm trying to read MAC addresses from the following text file:
using the following code:
However, I'm getting all zeros in the eth_addr array. What am I doing wrong?
fscanf(database, "%[^\t]\t%02x:%02x:%02x:%02x:%02x:%02x\n", ip_addr, ð_addr, ð_addr, ð_addr, ð_addr, ð_addr, ð_addr)