setlocale (LC_ALL, "");
int main(int argc, char **argv){	char *basename;#if I18N	bindtextdomain("net-tools", "/usr/share/locale");	textdomain("net-tools");#endif	basename = strrchr(argv[0], '/');	if (basename == NULL)		basename = argv[0];	else		basename++;		while (argc > 1) {		if (argv[1][0] != '-')			break;		if (matches(argv[1], "-family") == 0) {			argc--;			argv++;			if (argc <= 1)				usage();			if (strcmp(argv[1], "inet") == 0)				preferred_family = AF_INET;			else if (strcmp(argv[1], "inet6") == 0)				preferred_family = AF_INET6;			else				usage();		} else if (matches(argv[1], "-stats") == 0 ||			   matches(argv[1], "-statistics") == 0) {			++show_stats;		} else if (matches(argv[1], "-resolve") == 0) {			++resolve_hosts;		} else if ((matches(argv[1], "-V") == 0) || matches(argv[1], "--version") == 0) {			version();		} else			usage();		argc--;	argv++;	}	return do_multiaddr(argc-1, argv+1);}