Hey guys,
I'm trying to read MAC addresses from the following text file:
using the following code:Code:192.168.1.1 00:0c:41:ae:5a:04 192.168.1.103 00:16:76:1d:4d:a9 192.168.90.130 00:0C:29:F2:25:63 192.168.90.131 00:0C:29:C8:D3:9E 192.168.1.104 00:04:75:D5:44:2C
However, I'm getting all zeros in the eth_addr array. What am I doing wrong?Code:fscanf(database, "%[^\t]\t%02x:%02x:%02x:%02x:%02x:%02x\n", ip_addr, ð_addr[0], ð_addr[1], ð_addr[2], ð_addr[3], ð_addr[4], ð_addr[5])