Blame lib/glob_pattern_p.c

Packit Service a2489d
/* Return nonzero if PATTERN contains any metacharacters.
Packit Service a2489d
   Copyright (C) 2017-2018 Free Software Foundation, Inc.
Packit Service a2489d
   This file is part of the GNU C Library.
Packit Service a2489d
Packit Service a2489d
   The GNU C Library is free software; you can redistribute it and/or
Packit Service a2489d
   modify it under the terms of the GNU General Public
Packit Service a2489d
   License as published by the Free Software Foundation; either
Packit Service a2489d
   version 3 of the License, or (at your option) any later version.
Packit Service a2489d
Packit Service a2489d
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service a2489d
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service a2489d
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service a2489d
   General Public License for more details.
Packit Service a2489d
Packit Service a2489d
   You should have received a copy of the GNU General Public
Packit Service a2489d
   License along with the GNU C Library; if not, see
Packit Service a2489d
   <https://www.gnu.org/licenses/>.  */
Packit Service a2489d
Packit Service a2489d
#ifndef _LIBC
Packit Service a2489d
# include <config.h>
Packit Service a2489d
#endif
Packit Service a2489d
Packit Service a2489d
#include <glob.h>
Packit Service a2489d
#include "glob_internal.h"
Packit Service a2489d
Packit Service a2489d
/* Return nonzero if PATTERN contains any metacharacters.
Packit Service a2489d
   Metacharacters can be quoted with backslashes if QUOTE is nonzero.  */
Packit Service a2489d
int
Packit Service a2489d
__glob_pattern_p (const char *pattern, int quote)
Packit Service a2489d
{
Packit Service a2489d
  return __glob_pattern_type (pattern, quote) == GLOBPAT_SPECIAL;
Packit Service a2489d
}
Packit Service a2489d
weak_alias (__glob_pattern_p, glob_pattern_p)