glob_match man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

GLOB_MATCH(9)		     libata Core Internals		 GLOB_MATCH(9)

NAME
       glob_match - match a text string against a glob-style pattern

SYNOPSIS
       int glob_match(const char * text, const char * pattern);

ARGUMENTS
       text
	   the string to be examined

       pattern
	   the glob-style pattern to be matched against

DESCRIPTION
       Either/both of text and pattern can be empty strings.

       Match text against a glob-style pattern, with wildcards and simple
       sets:

       ? matches any single character. * matches any run of characters. [xyz]
       matches a single character from the set: x, y, or z. [a-d] matches a
       single character from the range: a, b, c, or d. [a-d0-9] matches a
       single character from either range.

       The special characters ?, [, -, or *, can be matched using a set, eg.
       [*] Behaviour with malformed patterns is undefined, though generally
       reasonable.

SAMPLE PATTERNS
       "SD1?“, ”SD1[0-5]“, ”*R0“, ”SD*1?[012]*xx"

       This function uses one level of recursion per '*' in pattern. Since it
       calls _nothing_ else, and has _no_ explicit local variables, this will
       not cause stack problems for any reasonable use here.

RETURNS
       0 on match, 1 otherwise.

AUTHOR
       Jeff Garzik
	   Author.

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013			 GLOB_MATCH(9)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net