summaryrefslogtreecommitdiffstats
path: root/host_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'host_test.c')
-rw-r--r--host_test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/host_test.c b/host_test.c
index b0d95c5..b30ca22 100644
--- a/host_test.c
+++ b/host_test.c
@@ -1,7 +1,11 @@
#include "host.c"
int main (int argc, char ** argv) {
if (argc != 3) {
- fprintf(stderr, "%s network hostnumber\n", argv[0]);
+ uint32_t v = 0;
+ unsigned long long int i = 0;
+ while ((v = ri(v, 4)))
+ fprintf(stderr, "(debug) %llu\t%u\n", i++, v);
+ fprintf(stderr, "%s network hostnumber\t\t(debug: %llu)\n", argv[0], i);
return 1;
}
struct in_net h = host(str2net(argv[1]), strtoll(argv[2], NULL, 10));