-
Notifications
You must be signed in to change notification settings - Fork 0
/
usage.inc
36 lines (36 loc) · 1.31 KB
/
usage.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"Usage:\n"
" mulle-c-string-escape [options] [infile] [outfile]\n"
"\n"
" \xe2\x9e\xbf mulle-c-string-escape turns data into C-strings\n"
"\n"
" Non-ASCII characters will be escaped to hex or octal. C-escapes are used for\n"
" known C escapes like '\\b'. The output is separated into lines of approximately\n"
" even length and does not exceed the chosen line length.\n"
" You can feed it binary or text files.\n"
"\n"
" You can then easily `#include` the output, or copy/paste it into your\n"
" C program like so:\n"
"\n"
" static char data[] =\n"
" #include \"data.inc\"\n"
" ;\n"
" #define s_data (sizeof( data) - 1)\n"
"\n"
"Example:\n"
" mulle-c-string-escape -0 -l 120 < mytext.txt\n"
"\n"
"Options:\n"
" -[01234] : zero to four space prefix (TAB)\n"
" -c : append \".inc\" to infile to generate outfile\n"
" -e : escape TAB characters\n"
" -h : this help\n"
" -l <n> : targetted line length (80)\n"
" -n : don't create a new line for linefeeds in text\n"
" -p <s> : use a custom prefix instead of spaces or TAB\n"
" -q : don't print helpful C code\n"
" -t <s> : visual size of TAB in text (8)\n"
" -v : print version information and exit\n"
"\n"
"Dedication:\n"
" To the memory of Oliver \"General\" Mondry ([email protected])\n"
"\n"