![[previous]](../icons/n_left.png)
![[next]](../icons/n_right.png)
![[first]](../icons/first.png)
![[last]](../icons/n_last.png)
![[top]](../icons/n_top.png)
![[bottom]](../icons/bottom.png)
![[index]](../icons/index.png)
![[help]](../icons/help.png) */
 */
   1 /* Test of <glob.h> substitute.
   2    Copyright (C) 2009-2021 Free Software Foundation, Inc.
   3 
   4    This program is free software: you can redistribute it and/or modify
   5    it under the terms of the GNU General Public License as published by
   6    the Free Software Foundation; either version 3 of the License, or
   7    (at your option) any later version.
   8 
   9    This program is distributed in the hope that it will be useful,
  10    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12    GNU General Public License for more details.
  13 
  14    You should have received a copy of the GNU General Public License
  15    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
  16 
  17 /* Written by Simon Josefsson <simon@josefsson.org>, 2009.  */
  18 
  19 #include <config.h>
  20 
  21 #include <glob.h>
  22 
  23 #include "macros.h"
  24 
  25 /* Check that size_t is defined.  */
  26 size_t a;
  27 
  28 /* Check that the various GLOB_* macros are defined.  */
  29 int flags[] =
  30   {
  31     GLOB_APPEND,
  32     GLOB_DOOFFS,
  33     GLOB_ERR,
  34     GLOB_MARK,
  35     GLOB_NOCHECK,
  36     GLOB_NOESCAPE,
  37     GLOB_NOSORT
  38   };
  39 int ret[] =
  40   {
  41     GLOB_ABORTED,
  42     GLOB_NOMATCH,
  43     GLOB_NOSPACE
  44   };
  45 
  46 int
  47 main ()
     /* ![[previous]](../icons/n_left.png)
![[next]](../icons/n_right.png)
![[first]](../icons/n_first.png)
![[last]](../icons/n_last.png)
![[top]](../icons/top.png)
![[bottom]](../icons/bottom.png)
![[index]](../icons/index.png)
![[help]](../icons/help.png) */
  48 {
  49   glob_t g;
  50 
  51   /* Make sure glob_t struct members exists. */
  52   ASSERT (sizeof (g.gl_pathc));
  53   ASSERT (sizeof (g.gl_pathv));
  54   ASSERT (sizeof (g.gl_offs));
  55 
  56   return 0;
  57 }
 */
  48 {
  49   glob_t g;
  50 
  51   /* Make sure glob_t struct members exists. */
  52   ASSERT (sizeof (g.gl_pathc));
  53   ASSERT (sizeof (g.gl_pathv));
  54   ASSERT (sizeof (g.gl_offs));
  55 
  56   return 0;
  57 }
![[previous]](../icons/n_left.png)
![[next]](../icons/n_right.png)
![[first]](../icons/n_first.png)
![[last]](../icons/last.png)
![[top]](../icons/top.png)
![[bottom]](../icons/n_bottom.png)
![[index]](../icons/index.png)
![[help]](../icons/help.png) */
 */