const char *mac="12:ac:45:21:be:22";char macaddr[9];sscanf(mac,"%hhx:%hhx:%hhx:%hhx:%hhx:%hhx",&macaddr[0],&macaddr[1],&macaddr[2],&macaddr[3],&macaddr[4],&macaddr[5]);打印输出mac跟macaddr根本对不上我这是ubuntu14.04的系统,图片上面一行是输出mac,下面行输出macaddr