gen.c revision 298258
1/*-
2 * This program is in the public domain
3 *
4 * $FreeBSD: stable/10/bin/dd/gen.c 298258 2016-04-19 07:34:31Z thomas $
5 */
6
7#include <stdio.h>
8#include <string.h>
9
10int
11main(int argc, char **argv)
12{
13	int i;
14
15	if (argc > 1 && !strcmp(argv[1], "189284")) {
16		fputs("ABCDEFGH", stdout);
17		for (i = 0; i < 8; i++)
18			putchar(0);
19	} else {
20		for (i = 0; i < 256; i++)
21			putchar(i);
22	}
23	return (0);
24}
25