摘要: 今日有感于编程水平下降,特意练习一下,根据MAC地址字符串,获取MAC地址的2种方法。 #include <stdio.h> void func1(char *str){ unsigned char mac[6] = {0}; sscanf(str, "%2x:%2x:%2x:%2x:%2x:%2x 阅读全文
posted @ 2016-07-13 23:56 爱编程的小兵 阅读(1403) 评论(0) 推荐(0) 编辑