summaryrefslogblamecommitdiffstats
path: root/host_test.c
blob: 05846863a83c474a370c03b21cb89f226a840788 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                         
#include "host.c"
int main (int argc, char ** argv) {
	if (argc != 3) {
		fprintf(stderr, "%s network hostnumber\n", argv[0]);
		return 1;
	}
	printf("%s\n", inet_ntoa(host(str2net(argv[1]), atoi(argv[2]))));
	return 0;
}