We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb75c89 commit 5bb63f1Copy full SHA for 5bb63f1
1 file changed
demos/hashsum.c
@@ -47,13 +47,15 @@ static void die(int status)
47
{
48
unsigned long w, x;
49
FILE* o = status == EXIT_SUCCESS ? stdout : stderr;
50
- fprintf(o, "usage: %s -a algorithm [-c] [file...]\n", hashsum);
51
- fprintf(o, "Algorithms:\n");
+ fprintf(o, "usage: %s -a algorithm [-c] [file...]\n\n", hashsum);
+ fprintf(o, "\t-c\tCheck the hash(es) of the file(s) written in [file].\n");
52
+ fprintf(o, "\t\t(-a not required)\n");
53
+ fprintf(o, "\nAlgorithms:\n\t");
54
w = 0;
55
for (x = 0; hash_descriptor[x].name != NULL; x++) {
56
w += fprintf(o, "%-14s", hash_descriptor[x].name);
57
if (w >= 70) {
- fprintf(o, "\n");
58
+ fprintf(o, "\n\t");
59
60
}
61
0 commit comments