3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
13 #include "support/globbing.h"
24 vector<string> const glob(string const & pattern, int flags)
27 glob_buffer.gl_offs = 0;
28 glob(pattern.c_str(), flags, 0, &glob_buffer);
29 vector<string> const matches(glob_buffer.gl_pathv,
30 glob_buffer.gl_pathv +
31 glob_buffer.gl_pathc);
32 globfree(&glob_buffer);
36 } // namespace support