30 |
|
|
31 |
#define PROGRAM_NAME "gnats-pwconv" |
#define PROGRAM_NAME "gnats-pwconv" |
32 |
const char *program_name = PROGRAM_NAME; |
const char *program_name = PROGRAM_NAME; |
|
|
|
33 |
/* static const int MAXLINE = 1024; */ |
/* static const int MAXLINE = 1024; */ |
34 |
static const char* const VERSION = "1.0"; |
static const char* const PROGRAM_VERSION = "1.0"; |
35 |
|
|
36 |
static const char* USAGE[] = |
static const char* USAGE[] = |
37 |
{ |
{ |
38 |
"Usage: " PROGRAM_NAME, |
"Usage: ", PROGRAM_NAME, |
39 |
#ifdef HAVE_LIBCRYPT |
#ifdef HAVE_LIBCRYPT |
40 |
" {-c | -m | -p} INFILE [OUTFILE]\n", |
" {-c | -m | -p} INFILE [OUTFILE]\n", |
41 |
#else |
#else |
58 |
NULL |
NULL |
59 |
}; |
}; |
60 |
|
|
|
|
|
61 |
/* Print perror MESSAGE, processed through printf with a single argument ARG. |
/* Print perror MESSAGE, processed through printf with a single argument ARG. |
62 |
*/ |
*/ |
63 |
static void |
static void |
287 |
break; |
break; |
288 |
|
|
289 |
case 'V': |
case 'V': |
290 |
printf ("%s %s\n", PROGRAM_NAME, VERSION); |
printf ("%s %s\n", PROGRAM_NAME, PROGRAM_VERSION); |
291 |
exit (0); |
exit (0); |
292 |
break; |
break; |
293 |
|
|