summaryrefslogtreecommitdiffstats
path: root/host_test.c
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-02-02 22:35:13 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-02-02 22:35:13 +0100
commit1a22d36e7a08e9ed06ff1e8f825159e3658fe8cc (patch)
treeb1e414e71e22102ca109f71c0b62a7a1ba56ac9d /host_test.c
parentdebian test #2 (diff)
downloaddnsfind-1a22d36e7a08e9ed06ff1e8f825159e3658fe8cc.tar
dnsfind-1a22d36e7a08e9ed06ff1e8f825159e3658fe8cc.tar.gz
dnsfind-1a22d36e7a08e9ed06ff1e8f825159e3658fe8cc.tar.bz2
dnsfind-1a22d36e7a08e9ed06ff1e8f825159e3658fe8cc.tar.lz
dnsfind-1a22d36e7a08e9ed06ff1e8f825159e3658fe8cc.tar.xz
dnsfind-1a22d36e7a08e9ed06ff1e8f825159e3658fe8cc.tar.zst
dnsfind-1a22d36e7a08e9ed06ff1e8f825159e3658fe8cc.zip
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));