summaryrefslogtreecommitdiff
path: root/language/japanese/ptex/usage.c
diff options
context:
space:
mode:
Diffstat (limited to 'language/japanese/ptex/usage.c')
-rw-r--r--language/japanese/ptex/usage.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/language/japanese/ptex/usage.c b/language/japanese/ptex/usage.c
new file mode 100644
index 0000000000..490065dbc3
--- /dev/null
+++ b/language/japanese/ptex/usage.c
@@ -0,0 +1,28 @@
+#include "config.h"
+
+/*** lib/usage.c: Output a help message (from help.h). ***/
+void
+usage P1C(const_string, str)
+{
+ fprintf (stderr, "Try `%s --help' for more information.\n", str);
+ uexit (1);
+}
+
+/* Call usage if the program exits by printing the help message.
+ MESSAGE is an NULL-terminated array or strings which make up the
+ help message. Each string is printed on a separate line.
+ We use arrays instead of a single string to work around compiler
+ limitations (sigh).
+*/
+void
+usagehelp P2C(const_string*, message, const_string, bug_email)
+{
+ if (!bug_email)
+ bug_email = "www-ptex@ascii.co.jp";
+ while (*message) {
+ fprintf(stdout, "%s\n", *message);
+ ++message;
+ }
+ fprintf(stdout, "\nEmail bug reports to %s.\n", bug_email);
+ uexit(0);
+}