⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wu_fnmatch.3

📁 wu-ftpd类unix下的ftp服务器,可用于嵌入式系统
💻 3
字号:
.\".\" Copyright (c) 1999,2000 WU-FTPD Development Group. .\" All rights reserved..\" .\" Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994 .\" The Regents of the University of California.  Portions Copyright (c) .\" 1993, 1994 Washington University in Saint Louis.  Portions Copyright .\" (c) 1996, 1998 Berkeley Software Design, Inc.  Portions Copyright (c) .\" 1998 Sendmail, Inc.  Portions Copyright (c) 1983, 1995, 1996, 1997 Eric .\" P. Allman.  Portions Copyright (c) 1989 Massachusetts Institute of .\" Technology.  Portions Copyright (c) 1997 Stan Barber.  Portions .\" Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997 Free Software .\" Foundation, Inc.  Portions Copyright (c) 1997 Kent Landfield. .\".\" Use and distribution of this software and its source code are governed .\" by the terms and conditions of the WU-FTPD Software License ("LICENSE"). .\".\"	$Id: wu_fnmatch.3,v 1.3 2000/07/01 18:52:08 wuftpd Exp $.\".TH WU_FNMATCH 3 "July 28, 1999".UC 7.SH NAMEwu_fnmatch \- match filename or pathname.SH SYNOPSIS.nf#include "wu_fnmatch.h"int wu_fnmatch(const char *pattern, const char *string, int flags);.fi.SH DESCRIPTION.I wu_fnmatchmatches patterns according to the rules used by the shell.It checks the string specified by the.I stringargument to see if it matches the pattern specified by the.I patternargument..PPThe.I flagsargument modifies the interpretation of.I patternand.I string.The value of.I flagsis the bitwise inclusive OR of any of the followingconstants, which are defined in the include file.IR wu_fnmatch.h ..TPFNM_PATHNAMESlash characters in.I stringmust be explicitly matched by slashes in.IR pattern .If this flag is not set, then slashes are treated as regular characters..TPFNM_NOESCAPEEvery occurrence of a backslash (``\e'') followed by a character in.I patternis replaced by that character.This is done to negate any special meaning for the character.If this flag is set, then backslashes are treated as regular characters..TPFNM_PERIODIf this flag is set, then a leading period in.I stringmust be explicity matched by a period in.IR pattern .A period is considered leading if it is the first character in.IR string ,or if both.T FNM_PATHNAMEis set and the period immediately follows a slash..TPFNM_LEADING_DIRIf this flag is set, if the entire.I patternhas been matched, and there are more characters remaining in the.IR string ,and either the last character matched was a slash, or the next character in the.I stringis a slash, then consider the entire.I stringmatched..TPFNM_CASEFOLDNormally, upper case and lower case letters are distinct.  This flag causesthem to be considered equal..SH RETURNSIf.I stringmatches the pattern specified by.IR pattern ,then.I wu_fnmatchreturns zero.Otherwise,.I wu_fnmatchreturns FNM_NOMATCH..SH SEE ALSOsh(1), glob(3), wordexp(3), regexp(3).SH BUGS{} alternatives are not handled.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -