setlocale (LC_ALL, "");
int main(int argc, char **argv){    int ret = 0;    char **spp;#if I18N    bindtextdomain("net-tools", "/usr/share/locale");    textdomain("net-tools");#endif    if ((skfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {	perror("socket");	exit(-1);    }    /* Find any options. */    argc--;    argv++;    while (argv[0] && *argv[0] == '-') {	if (!strcmp(*argv, "-a"))	    opt_a = 1;	if (!strcmp(*argv, "-v"))	    opt_v = 1;	if (!strcmp(*argv, "-V") || !strcmp(*argv, "--version"))	    version();	argv++;	argc--;    }    if (argc == 0)	usage();    spp = argv;    strncpy(ifr.ifr_name, *spp++, IFNAMSIZ);    plip=(struct plipconf *)&ifr.ifr_data;    plip->pcmd = PLIP_GET_TIMEOUT;	/* get current settings for device */    if (ioctl(skfd, SIOCDEVPLIP, &ifr) < 0) {	perror("ioctl");	exit(-1);    }    if (*spp == (char *) NULL) {	print_plip();	(void) close(skfd);	exit(0);    }    while (*spp != (char *) NULL) {	if (!strcmp(*spp, "nibble")) {	    if (*++spp == NULL)		usage();	    plip->nibble = atoi(*spp);	    spp++;	    continue;	}	if (!strcmp(*spp, "trigger")) {	    if (*++spp == NULL)		usage();	    plip->trigger = atoi(*spp);	    spp++;	    continue;	}	usage();    }    plip->pcmd = PLIP_SET_TIMEOUT;    if (ioctl(skfd, SIOCDEVPLIP, &ifr) < 0)	perror("ioctl");    print_plip();    /* Close the socket. */    (void) close(skfd);    return (ret);}