diff options
Diffstat (limited to 'src/afc.c')
| -rw-r--r-- | src/afc.c | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -1349,3 +1349,17 @@ afc_error_t afc_set_file_time(afc_client_t client, const char *path, uint64_t mt | |||
| 1349 | return ret; | 1349 | return ret; |
| 1350 | } | 1350 | } |
| 1351 | 1351 | ||
| 1352 | afc_error_t afc_dictionary_free(char **dictionary) | ||
| 1353 | { | ||
| 1354 | int i = 0; | ||
| 1355 | |||
| 1356 | if (!dictionary) | ||
| 1357 | return AFC_E_INVALID_ARG; | ||
| 1358 | |||
| 1359 | for (i = 0; dictionary[i]; i++) { | ||
| 1360 | free(dictionary[i]); | ||
| 1361 | } | ||
| 1362 | free(dictionary); | ||
| 1363 | |||
| 1364 | return AFC_E_SUCCESS; | ||
| 1365 | } | ||
