GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
glob-wrappers.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2016-2017 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_glob_wrappers_h)
24 #define octave_glob_wrappers_h 1
25 
26 #if defined __cplusplus
27 extern "C" {
28 #endif
29 
30 extern void *octave_create_glob_info_struct (void);
31 
32 // Does not call globfree.
33 extern void octave_destroy_glob_info_struct (void *glob_info);
34 
35 // We don't need the error function pointer that the system glob
36 // function allows.
37 extern int
38 octave_glob_wrapper (const char *pattern, int flags, void *glob_info);
39 
40 extern int octave_glob_num_matches (void *glob_info);
41 
42 extern char **octave_glob_match_list (void *glob_info);
43 
44 extern void octave_globfree_wrapper (void *glob_info);
45 
46 extern int octave_glob_nosort_wrapper (void);
47 
48 extern int
49 octave_fnmatch_wrapper (const char *pattern, const char *name, int flags);
50 
51 extern int octave_fnm_nomatch_wrapper (void);
52 
53 extern int octave_fnm_pathname_wrapper (void);
54 
55 extern int octave_fnm_noescape_wrapper (void);
56 
57 extern int octave_fnm_period_wrapper (void);
58 
59 #if defined __cplusplus
60 }
61 #endif
62 
63 #endif
char ** octave_glob_match_list(void *glob_info)
Definition: glob-wrappers.c:65
int octave_fnm_pathname_wrapper(void)
Definition: glob-wrappers.c:95
void octave_destroy_glob_info_struct(void *glob_info)
Definition: glob-wrappers.c:47
int octave_glob_num_matches(void *glob_info)
Definition: glob-wrappers.c:59
int octave_fnm_period_wrapper(void)
OCTAVE_EXPORT octave_value_list any number nd example oindent prints the prompt xample Pick a any number!nd example oindent and waits for the user to enter a value The string entered by the user is evaluated as an so it may be a literal a variable name
Definition: input.cc:871
int octave_fnm_noescape_wrapper(void)
int octave_fnmatch_wrapper(const char *pattern, const char *name, int flags)
Definition: glob-wrappers.c:83
is longer than or if then or only for unique occurrences of the complete pattern(false).The default is true.If a cell array of strings ar
Definition: strfind.cc:192
int octave_glob_nosort_wrapper(void)
Definition: glob-wrappers.c:77
void octave_globfree_wrapper(void *glob_info)
Definition: glob-wrappers.c:71
int octave_fnm_nomatch_wrapper(void)
Definition: glob-wrappers.c:89
int octave_glob_wrapper(const char *pattern, int flags, void *glob_info)
Definition: glob-wrappers.c:53
void * octave_create_glob_info_struct(void)
Definition: glob-wrappers.c:40