2 * Unloved program to convert a binary on stdin to a C include on stdout
4 * Jan 1999 Matt Mackall <mpm@selenic.com>
6 * This software may be used and distributed according to the terms
7 * of the GNU General Public License, incorporated herein by reference.
12 int main(int argc, char *argv[])
17 printf("const char %s[] %s=\n",
18 argv[1], argc > 2 ? argv[2] : "");
22 while ((ch = getchar()) != EOF)
33 printf("\t;\n\nconst int %s_size = %d;\n", argv[1], total);