Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/bin/dd/gen.c
39475 views
1
/*-
2
* This program is in the public domain
3
*/
4
5
#include <stdio.h>
6
#include <string.h>
7
8
int
9
main(int argc, char **argv)
10
{
11
int i;
12
13
if (argc > 1 && !strcmp(argv[1], "189284")) {
14
fputs("ABCDEFGH", stdout);
15
for (i = 0; i < 8; i++)
16
putchar(0);
17
} else {
18
for (i = 0; i < 256; i++)
19
putchar(i);
20
}
21
return (0);
22
}
23
24