#include "cmdln.h"
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>
#include <string.h>
Go to the source code of this file.
#define DEFAULT_LIST_FILE "/.wd_list" |
#define ENV_VAR_NAME "WD_OPTS" |
#define INCOMPATIBLE_OP_STRING "Parameter incompatible with other arguments" |
#define NEED_PARAMETER_STRING "No parameter specified for argument" |
#define UNRECOGNISED_ARG_STRING "Unrecognised command line argument" |
#define UNRECOGNISED_PARAM_STRING "Parameter to argument not recognised" |
#define VERSION_STRING "wd v1.1 by dev@brightsilence.com\n https://github.com/bright-tools/wd" |
Initialise the specified config with default values.
- Parameters
-
[in] | p_config | The configuration to initialise |
Definition at line 86 of file cmdln.c.
int process_cmdln |
( |
config_container_t *const |
p_config, |
|
|
const int |
argc, |
|
|
char *const |
argv[] |
|
) |
| |