Initial revision
[ssr] / StraySrc / Utilities / h / glob
1 /*
2 * glob.c
3 *
4 * Full file wildcard matching
5 *
6 * © 1998 Straylight/Edgeware
7 */
8
9 /*----- Licensing note ----------------------------------------------------*
10 *
11 * This file is part of Straylight's core utilities (coreutils).
12 *
13 * Coreutils is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2, or (at your option)
16 * any later version.
17 *
18 * Coreutils is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with coreutils. If not, write to the Free Software Foundation,
25 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 */
27
28 #ifndef GLOB_H
29 #define GLOB_H
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 /*----- Functions ---------------------------------------------------------*/
36
37 /* --- @glob@ --- *
38 *
39 * Arguments: @const char *pat@ = pointer to pattern string to match
40 * @void (*proc)(const char *, void *)@ = client function
41 * @void *ctx@ = context pointer to pass function
42 *
43 * Returns: Number of filenames matched.
44 *
45 * Use: Does filename globbing.
46 */
47
48 extern int glob(const char */*pat*/,
49 void (*/*proc*/)(const char *, void *),
50 void */*ctx*/);
51
52 /*----- That's all, folks -------------------------------------------------*/
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif