9526d60
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; }