1#include "test-tool.h"
2#include "git-compat-util.h"
34
int cmd__genzeros(int argc, const char **argv)
5{
6long count;
78
if (argc > 2) {
9fprintf(stderr, "usage: %s [<count>]\n", argv[0]);
10return 1;
11}
1213
count = argc > 1 ? strtol(argv[1], NULL, 0) : -1L;
1415
while (count < 0 || count--) {
16if (putchar(0) == EOF)
17return -1;
18}
1920
return 0;
21}