* @brief Initializes the list of paths and adds the DEFAULT_PATH * */
| 32 | * |
| 33 | */ |
| 34 | void init_paths() |
| 35 | { |
| 36 | paths = (char **)malloc(sizeof(char *) * 2); |
| 37 | paths[paths_c] = (char *)malloc(sizeof(char) * strlen(DEFAULT_PATH) + 1); |
| 38 | strcpy(paths[paths_c++], DEFAULT_PATH); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * @brief Empties the list of paths and frees memory |