31 #if defined (HAVE_CONFIG_H)
45 return malloc (
sizeof (glob_t));
58 return glob (pattern, flags, 0, glob_info);
64 return glob_info ? ((glob_t *) glob_info)->gl_pathc : 0;
70 return glob_info ? ((glob_t *) glob_info)->gl_pathv : 0;
76 globfree ((glob_t *) glob_info);
88 return fnmatch (pattern, name, flags);
int octave_fnm_nomatch_wrapper(void)
int octave_glob_nosort_wrapper(void)
void octave_destroy_glob_info_struct(void *glob_info)
void octave_globfree_wrapper(void *glob_info)
void * octave_create_glob_info_struct(void)
int octave_glob_num_matches(void *glob_info)
int octave_fnm_period_wrapper(void)
int octave_fnm_pathname_wrapper(void)
int octave_fnm_noescape_wrapper(void)
int octave_glob_wrapper(const char *pattern, int flags, void *glob_info)
int octave_fnmatch_wrapper(const char *pattern, const char *name, int flags)
char ** octave_glob_match_list(void *glob_info)
bool fnmatch(const string_vector &pat, const std::string &str, int fnm_flags)
string_vector glob(const string_vector &pat)