diff --git a/README.md b/README.md index 622b78a..a1785d4 100644 --- a/README.md +++ b/README.md @@ -43,13 +43,13 @@ at this moment! * `encrypt "Regular string"` -> Converts to encrypted string 'Uhjvqds#xuulqj' * `decrypt "Uhjvqds#xuulqj"` -> Converts back to 'Regular string' - * MD5 file checking +* MD5 file checking * `md5 "file.txt"` -> outputs filename and md5 hash - * 2 Layer piping +* 2 Layer piping * `md5 "file.txt" | write "file.txt.md5" "%PIPE%"` -> writes output of md5 to file.txt.md5 - * Networking functions +* Networking functions * `netlisten "" "" ""` -> listens on and replies on found from outside * `nettoss "
" "" ""` -> binds to outside server at
: and pushes thus, disconnecting * `nethttp "" ""` -> throws up a web server on in the current working directory, forkval (0 or 1, 0 don't fork into background / 1 do). diff --git a/src/main.c b/src/main.c index e680970..288e856 100644 --- a/src/main.c +++ b/src/main.c @@ -5,6 +5,8 @@ View README file supplied with this software for more details */ +#define MY_GLOBAL + #include "deps.h" #include "util.h" #include "functions.h" diff --git a/src/vars.h b/src/vars.h index 172f9d3..cab04dd 100644 --- a/src/vars.h +++ b/src/vars.h @@ -5,6 +5,10 @@ View README file supplied with this software for more details */ +#ifndef MY_GLOBAL +#define MY_GLOBAL extern +#endif /* MY_GLOBAL */ + struct s_variables { char var_name [MAX_VAR_NAME_LEN]; @@ -12,7 +16,7 @@ struct s_variables }; typedef struct s_variables VARS; -VARS svars[MAXVARS]; +MY_GLOBAL VARS svars [MAXVARS]; void set_var(int index, char *varname, char *vardata); int get_var_count();