File src/utils/string_array.c changed (mode: 100644) (index b39ba4189..b031d1bf4) |
... |
... |
free_strings(char *array[], size_t len) |
174 |
174 |
} |
} |
175 |
175 |
} |
} |
176 |
176 |
|
|
177 |
|
void |
|
178 |
|
free_wstring_array(wchar_t **array, size_t len) |
|
179 |
|
{ |
|
180 |
|
free_string_array((char **)array, len); |
|
181 |
|
} |
|
182 |
|
|
|
183 |
177 |
char ** |
char ** |
184 |
178 |
read_file_of_lines(const char filepath[], int *nlines) |
read_file_of_lines(const char filepath[], int *nlines) |
185 |
179 |
{ |
{ |
File src/utils/string_array.h changed (mode: 100644) (index d4003c28c..fe5d69c2f) |
... |
... |
void free_string_array(char *array[], size_t len); |
70 |
70 |
/* Frees memory of all array items, but not from the array itself. */ |
/* Frees memory of all array items, but not from the array itself. */ |
71 |
71 |
void free_strings(char *array[], size_t len); |
void free_strings(char *array[], size_t len); |
72 |
72 |
|
|
73 |
|
void free_wstring_array(wchar_t **array, size_t len); |
|
74 |
|
|
|
75 |
73 |
/* Reads file specified by filepath into an array of strings. Returns non-NULL |
/* Reads file specified by filepath into an array of strings. Returns non-NULL |
76 |
74 |
* on success, otherwise NULL is returned, *nlines is untouched and errno |
* on success, otherwise NULL is returned, *nlines is untouched and errno |
77 |
75 |
* contains error code. For empty file non-NULL will be returned, but *nlines |
* contains error code. For empty file non-NULL will be returned, but *nlines |