1 1.1 christos /* Return nonzero if PATTERN contains any metacharacters. 2 1.1.1.2 christos Copyright (C) 2017-2022 Free Software Foundation, Inc. 3 1.1 christos This file is part of the GNU C Library. 4 1.1 christos 5 1.1 christos The GNU C Library is free software; you can redistribute it and/or 6 1.1.1.2 christos modify it under the terms of the GNU Lesser General Public 7 1.1 christos License as published by the Free Software Foundation; either 8 1.1.1.2 christos version 2.1 of the License, or (at your option) any later version. 9 1.1 christos 10 1.1 christos The GNU C Library is distributed in the hope that it will be useful, 11 1.1 christos but WITHOUT ANY WARRANTY; without even the implied warranty of 12 1.1 christos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 1.1.1.2 christos Lesser General Public License for more details. 14 1.1 christos 15 1.1.1.2 christos You should have received a copy of the GNU Lesser General Public 16 1.1 christos License along with the GNU C Library; if not, see 17 1.1 christos <https://www.gnu.org/licenses/>. */ 18 1.1 christos 19 1.1 christos #ifndef _LIBC 20 1.1 christos # include <libc-config.h> 21 1.1 christos #endif 22 1.1 christos 23 1.1 christos #include <glob.h> 24 1.1 christos #include "glob_internal.h" 25 1.1 christos 26 1.1 christos /* Return nonzero if PATTERN contains any metacharacters. 27 1.1 christos Metacharacters can be quoted with backslashes if QUOTE is nonzero. */ 28 1.1 christos int 29 1.1 christos __glob_pattern_p (const char *pattern, int quote) 30 1.1 christos { 31 1.1 christos return __glob_pattern_type (pattern, quote) == GLOBPAT_SPECIAL; 32 1.1 christos } 33 1.1 christos weak_alias (__glob_pattern_p, glob_pattern_p) 34