Add check for glob() function

This commit is contained in:
Christophe de Dinechin 2018-11-17 17:28:23 +01:00
parent 00f4186cfe
commit 3fcd9e674d
1 changed files with 14 additions and 0 deletions

14
config/check_glob.c Normal file
View File

@ -0,0 +1,14 @@
#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);
}