diff options
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -4,6 +4,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <libgen.h> +#include <sys/stat.h> +#include <limits.h> #define MAXCHAR 1000 @@ -22,4 +25,8 @@ int getconfint(char *confname, char *filename); // Return 0 for password mismatch, or 1 for password match. int checkpassword(char *password, char *filename); +// Create the default configuration file. +// Return 1 on success, 0 on failure. +int createconfigfile(char *filename); + #endif |