*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> Tcl/strmatch (3)              
Title
Content
Arch
Section
 

Contents


Tcl_StringMatch(3Tcl)					 Tcl_StringMatch(3Tcl)


NAME    [Toc]    [Back]

     Tcl_StringMatch - test whether a string matches a pattern

SYNOPSIS    [Toc]    [Back]

     #include <tcl.h>

     int
     Tcl_StringMatch(string, pattern)

ARGUMENTS    [Toc]    [Back]

     char*string(in)
     String to test.

     char*pattern(in)
     Pattern to	match against string.  May contain special characters from the
     set *?\[].

DESCRIPTION    [Toc]    [Back]

     This utility procedure determines whether a string	matches	a given
     pattern.  If it does, then	Tcl_StringMatch	returns	1.  Otherwise
     Tcl_StringMatch returns 0.	 The algorithm used for	matching is the	same
     algorithm used in the ``string match'' Tcl	command	and is similar to the
     algorithm used by the C-shell for file name matching;  see	the Tcl	manual
     entry for details.

KEYWORDS    [Toc]    [Back]

     match, pattern, string


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
fnmatch FreeBSD test whether a filename or pathname matches a shell-style pattern
lptest Tru64 Generates the line printer ripple test pattern
glXChooseVisual Tru64 return a visual that matches specified attributes
glxchoosevisual IRIX return a visual that matches specified attributes
XmRenderTableGetRendition HP-UX A convenience function that matches a rendition tag
XmRenderTableGetRenditions HP-UX A convenience function that matches rendition tags
dmicchoose IRIX return an image converter that matches specified image parameters
tt_pattern_arg_add HP-UX add an argument to a pattern
tt_message_barg_add HP-UX add an argument to a pattern
tt_pattern_print HP-UX format a pattern
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service