15 lines
219 B
C
15 lines
219 B
C
|
#include <glob.h>
|
||
|
|
||
|
int glob_error(const char *epath, int errno)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
glob_t files;
|
||
|
const char *pattern = "*";
|
||
|
glob(pattern, GLOB_MARK, glob_error, &files);
|
||
|
globfree(&files);
|
||
|
}
|