deps/kb_meme/meme-5.0.1/src/meme2alph.c
/**************************************************************************
 * Prints a usage message and exits. 
 * If given an error message it prints that first and will exit with
 * return code of EXIT_FAILURE.
 **************************************************************************/
Prints a usage message and exits.
If given an error message it prints that first and will exit with
return code of EXIT_FAILURE.
Prints a usage message and exits . If given an error message it prints that first and will exit with return code of EXIT_FAILURE .
static void usage(char *format, ...) {
  va_list argp;
  char *usage = 
    "Usage:\n" 
    "    meme2alph [options] <motifs file> [<alphabet file>]\n"
    "Options:\n"
    "    -help            print this usage message\n"
    "Description:\n"
    "    Extracts the motif alphabet and prints it to standard output or the <alphabet file>.\n";
  if (format) {
    va_start(argp, format);
    vfprintf(stderr, format, argp);
    va_end(argp);
    fprintf(stderr, "\n");
    fputs(usage, stderr);
    fflush(stderr);
  } else {
    puts(usage);
  }
  if (format) exit(EXIT_FAILURE);
  exit(EXIT_SUCCESS);
}
static void usage ( char * format , ... ) { va_list argp ; char * usage = " \n " " \n " " \n " " \n " " \n " " \n " ; if ( format ) { va_start ( argp , format ) ; vfprintf ( stderr , format , argp ) ; va_end ( argp ) ; fprintf ( stderr , " \n " ) ; fputs ( usage , stderr ) ; fflush ( stderr ) ; } else { puts ( usage ) ; } if ( format ) exit ( EXIT_FAILURE ) ; exit ( EXIT_SUCCESS ) ; }
Prints a usage message and exits.
Prints a usage message and exits .