Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/src/cmd/tex/web2c/lib/usage.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/* 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 DllImport 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);
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.