aboutsummaryrefslogtreecommitdiff
path: root/bin/dd/gen.c
blob: 01e0f61b27b19434af87831f25070e7b7cf09c7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*-
 * This program is in the public domain
 */

#include <stdio.h>
#include <string.h>

int
main(int argc, char **argv)
{
	int i;

	if (argc > 1 && !strcmp(argv[1], "189284")) {
		fputs("ABCDEFGH", stdout);
		for (i = 0; i < 8; i++)
			putchar(0);
	} else {
		for (i = 0; i < 256; i++)
			putchar(i);
	}
	return (0);
}