#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "rdd.h"
#include "rdd_internals.h"
#include "error.h"
#include "commandline.h"
Go to the source code of this file.
Functions | |
int | compare_paths (char *first_path, char *second_path) |
static int | match_name (char *input, char *short_name, char *long_name) |
RDD_OPTION * | rdd_get_opt_with_arg (RDD_OPTION *tab, char **argv, int argc, unsigned *i, char **opt, char **arg) |
void | rdd_opt_init (const char *usage_msg) |
int | rdd_opt_set (RDD_OPTION *tab, char *longname) |
int | rdd_opt_set_arg (RDD_OPTION *tab, char *longname, char **argp) |
void | rdd_opt_usage (RDD_OPTION *opttab, RDD_OPTION *output_opttab, int exitCode) |
static void | rdd_option_table_usage (RDD_OPTION *tab, const char *name) |
Variables | |
static char | copyright [] |
static const char * | usage_message |
int compare_paths | ( | char * | first_path, | |
char * | second_path | |||
) |
Definition at line 247 of file commandline.c.
static int match_name | ( | char * | input, | |
char * | short_name, | |||
char * | long_name | |||
) | [static] |
Definition at line 73 of file commandline.c.
RDD_OPTION* rdd_get_opt_with_arg | ( | RDD_OPTION * | tab, | |
char ** | argv, | |||
int | argc, | |||
unsigned * | i, | |||
char ** | opt, | |||
char ** | arg | |||
) |
Definition at line 100 of file commandline.c.
References _RDD_OPTION::arg_descr, _RDD_OPTION::arg_value, _RDD_OPTION::count, error(), _RDD_OPTION::long_name, match_name(), and _RDD_OPTION::short_name.
void rdd_opt_init | ( | const char * | usage_msg | ) |
Verify whether argv[*i] is an option name (short or long) and whether its argument, if any, is present.
Definition at line 67 of file commandline.c.
References usage_message.
int rdd_opt_set | ( | RDD_OPTION * | tab, | |
char * | longname | |||
) |
Definition at line 193 of file commandline.c.
References rdd_opt_set_arg().
int rdd_opt_set_arg | ( | RDD_OPTION * | tab, | |
char * | longname, | |||
char ** | argp | |||
) |
Definition at line 166 of file commandline.c.
References _RDD_OPTION::arg_value, bug(), _RDD_OPTION::count, _RDD_OPTION::long_name, and streq.
void rdd_opt_usage | ( | RDD_OPTION * | opttab, | |
RDD_OPTION * | output_opttab, | |||
int | exitCode | |||
) |
Definition at line 230 of file commandline.c.
References rdd_option_table_usage(), and usage_message.
static void rdd_option_table_usage | ( | RDD_OPTION * | tab, | |
const char * | name | |||
) | [static] |
Definition at line 199 of file commandline.c.
References _RDD_OPTION::arg_descr, _RDD_OPTION::description, _RDD_OPTION::long_name, and _RDD_OPTION::short_name.
char copyright[] [static] |
Initial value:
"@(#) Copyright (c) 2002\n\ Netherlands Forensic Institute. All rights reserved.\n"
Definition at line 39 of file commandline.c.
const char* usage_message [static] |
Definition at line 64 of file commandline.c.