Jay wrote:
> I need to write a program to find mac address of a remote computer, is
> this possible? How?
#include <stdio.h>
int main(void)
{
char mac_address[257];
printf("Enter the MAC address of the remote computer: ");
fflush(stdin);
fgets(mac_address,sizeof(mac_address), stdin);
if (mac_address[strlen(mac_address) - 1] == '\n')
mac_address[strlen(mac_address) - 1] = 0;
printf("The MAC address of the remote computer is %s\n",
mac_address);
return 0;
}
--
Lew Pitcher
Master Codewright and JOAT-in-training
Registered Linux User #112576 (
http://counter.li.org/)
Slackware - Because I know what I'm doing.