Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. FILE *fp = popen("ifconfig en0 | awk '/ether/{print $2}'", "r");
  2. fscanf(fp, "%s", &mac);
  3. pclose(fp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement