Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE *fp = popen("ifconfig en0 | awk '/ether/{print $2}'", "r");
- fscanf(fp, "%s", &mac);
- pclose(fp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement