File: usage.c

package info (click to toggle)
texfam 1.1-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 13,628 kB
  • ctags: 3,925
  • sloc: ansic: 26,423; sh: 3,909; perl: 2,928; makefile: 1,990; yacc: 1,252; pascal: 772; lex: 213; asm: 139; awk: 35; sed: 34
file content (24 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* usage.c: Output a help message (from help.h).

   Written in 1995 by K. Berry.  Public domain.  */

#include "config.h"

/* We're passed in zero for STATUS if this is from --help, else nonzero
   if it was from some kind of error.  In the latter case, we say `See
   HELP_STR --help for more information.', i.e., STR is supposed to be
   the program name.  */

void
usage P2C(int, status,  const_string, str)
{
  if (status == 0) {
    extern KPSEDLL char *kpse_bug_address;
    fputs (str, stdout);
    putchar ('\n');
    fputs (kpse_bug_address, stdout);
  } else {
    fprintf (stderr, "Try `%s --help' for more information.\n", str);
  }
  uexit (status);
}