reword help

This commit is contained in:
Connor Olding 2015-04-11 12:22:20 -07:00
parent 2927f39bb1
commit 020acb022c
2 changed files with 4 additions and 7 deletions

View File

@ -19,7 +19,7 @@ crc32 - a 32-bit cyclic rendundancy check calculator
-x NOT the output -x NOT the output
-r reverse output's bits -r reverse output's bits
numbers <n> may be entered as hexadecimal or octal with prefixes numbers <n> may be in hexadecimal or octal using proper prefixes
``` ```
Notes Notes

9
main.c
View File

@ -27,7 +27,7 @@ static bool print_binary = 0;
static bool xor_output = 1; static bool xor_output = 1;
static bool reflect_output = 0; static bool reflect_output = 0;
static const char help1[] = "\ static const char help[] = "\
crc32 - a 32-bit cyclic rendundancy check calculator\n\ crc32 - a 32-bit cyclic rendundancy check calculator\n\
\n\ \n\
<files...> open files as inputs\n\ <files...> open files as inputs\n\
@ -39,9 +39,7 @@ crc32 - a 32-bit cyclic rendundancy check calculator\n\
-x NOT the output\n\ -x NOT the output\n\
-r reverse output's bits\n\ -r reverse output's bits\n\
\n\ \n\
"; numbers <n> may be in hexadecimal or octal using proper prefixes\n\
static const char help2[] = "\
numbers <n> may be entered as hexadecimal or octal with prefixes\n\
"; ";
static char static char
@ -59,8 +57,7 @@ handle_flag(char flag, char *(*nextarg)())
char *next; char *next;
switch (flag) { switch (flag) {
case 'h': { case 'h': {
printf(help1); printf(help);
printf(help2);
} exit(0); } exit(0);
case 'e': { case 'e': {
big_endian = 1; big_endian = 1;