4 * Utility function for reading path list files.
8 * Copyright (C) 2013 Eric Biggers
10 * This file is part of wimlib, a library for working with WIM files.
12 * wimlib is free software; you can redistribute it and/or modify it under the
13 * terms of the GNU General Public License as published by the Free
14 * Software Foundation; either version 3 of the License, or (at your option)
17 * wimlib is distributed in the hope that it will be useful, but WITHOUT ANY
18 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
19 * A PARTICULAR PURPOSE. See the GNU General Public License for more
22 * You should have received a copy of the GNU General Public License
23 * along with wimlib; if not, see http://www.gnu.org/licenses/.
30 #include "wimlib/pathlist.h"
31 #include "wimlib/textfile.h"
34 read_path_list_file(const tchar *listfile,
35 tchar ***paths_ret, size_t *num_paths_ret,
39 struct text_file_section tmp = {
46 ret = load_text_file(listfile, &buf, &tmp, 1, NULL);
50 *paths_ret = paths.strings;
51 *num_paths_ret = paths.num_strings;
52 *mem_ret = (void *)buf;