Blame lib/glob_pattern_p.c

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