1 /* usage.c: Output a help message (from help.h).
3 Modified in 2001 by O. Weber.
4 Written in 1995 by K. Berry. Public domain. */
6 #include <w2c/config.h>
8 /* Call usage if the program exits with an "usage error". STR is supposed
9 to be the program name. */
12 usage (const_string str
)
14 fprintf (stderr
, "Try `%s --help' for more information.\n", str
);
18 /* Call usage if the program exits by printing the help message.
19 MESSAGE is a NULL-terminated array of strings which make up the
20 help message. Each string is printed on a separate line.
21 We use arrays instead of a single string to work around compiler
25 usagehelp (const_string
*message
, const_string bug_email
)
28 bug_email
= "tex-k@tug.org";
30 printf("%s\n", *message
);
33 printf("\nEmail bug reports to %s.\n", bug_email
);