In this case, GNU/Linux, I could use the arp command. Indeed I don't need this script to know "who's online", or anything like it, but I do need it because I wanted an example of how I could fetch the mac address of the network interfaces I have installed on my machine using code (it's a research work, by the way), and not internalizing another program such as system("arp -a"). I also ocurred me that it could be useful to fetch the entire arp table, so I asked the question as above :)
I imagine I could fetch it from /proc. But I'm not sure how portable this solution is. I know it stands almost for the same as fetching from the "arp -a" results, but it's more tolerable from the point of view of this research (not my idea). Again, any help is appreciated.