/ inc / argument_helper_functions.h
argument_helper_functions.h
 1  /**
 2   * @file argument_helper_functions.h
 3   * @author Rene Ceska xceska06 (xceska06@stud.fit.vutbr.cz)
 4   * @brief Helper functions for parsing arguments
 5   * @date 2023-11-19
 6   */
 7  #ifndef ARGUMENT_HELPER_FUNCTIONS_H
 8  #define ARGUMENT_HELPER_FUNCTIONS_H
 9  #include "string.h"
10  #include <stdlib.h>
11  #include <stdio.h>
12  
13  typedef struct args_t {
14    char *dbPath;
15    int port;
16    bool err;
17  } argsT;
18  
19  /**
20   * @brief Parses the arguments from the command line for ldapserver
21   *
22   * @param argc count of arguments
23   * @param argv values of arguments
24   * @return argsT
25   */
26  argsT parseArguments(int argc,const char **argv);
27  
28  #endif