- char * new_queue = try_malloc(*queue_size + 1, __func__);
- memcpy(new_queue, *queue, *queue_size);
- char * new_pos = new_queue + *queue_size;
- * new_pos = c;
- exit_err(*queue_size == UINT32_MAX, err_size);
- *queue_size = *queue_size + 1;
- free(*queue);
- *queue = new_queue;
- }
- while (EOF != (test = try_fgetc(file, __func__)));
- if (*queue_size && '\0' != (*queue)[*queue_size - 1])
- {
- char * new_queue = try_malloc(*queue_size + 1, __func__);
- memcpy(new_queue, *queue, *queue_size);
- new_queue[*queue_size] = '\0';
- exit_err(*queue_size == UINT32_MAX, err_size);
- *queue_size = *queue_size + 1;
- free(*queue);
- *queue = new_queue;