About Us Documentation

Contact Site Map




Tcl_StringMatch(3)   Tcl Library Procedures



Tcl_StringMatch - test whether a string matches a pattern


#include <tcl.h> int Tcl_StringMatch(string, pattern)


char *string (in) String to test. char *pattern (in) Pattern to match against string. May contain spe- cial characters from the set *?\[]. _________________________________________________________________


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.


match, pattern, string Tcl 1 Prepared by Ready-to-Run Software, Inc.


Email addresses listed on this site may  NOT be used for unsolicited commercial email.

Ready-to-Run Software, Inc Privacy Statement

Portions (c)Copyright, 1996-2005 by Ready-to-Run Software, Inc
(All rights reserved.)
212 Cedar Cove
Lansing, NY 14882
Phone: 607 533 UNIX (8649)
Fax: 607 533 4002

To return to the Ready-to-Run Software WinPak Table of contents please presshere