summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosias <me@josias.dev>2021-06-27 17:40:42 -0700
committerJosias <me@josias.dev>2021-06-27 17:40:42 -0700
commit43024fd3167770b063a5eca23521c3391b0110cd (patch)
tree9c0dbd2c49df90f6af8ba978f9f75763bdb44cde
parentd4af25d3de5c7a536c86e7dbc0ffc0c24cd80dd0 (diff)
Print number of search results when searching posts
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index ef3cdc5..7203bb2 100644
--- a/main.c
+++ b/main.c
@@ -148,6 +148,7 @@ int main(int argc, char **argv)
printf("%s\n", results[i].path);
}
}
+ printf("Found %zu results\n", count);
} else {
fprintf(stderr, "jw: unknown option: %s\n", argv[1]);
}