CADDIT CAD CAM CNC Software - download AutoCAD compatible design software progeCAD Alibre T-FLEX and more
CADDIT Website Knowledge Base Search:

progeCAD Help

Welcome to progeCAD
Working with progeCAD
Command Reference
CAD System Variables
Programming progeCAD
Full Index (caution - 400kb)

Further Links:

Download progeCAD
Register progeCAD


T-FLEX PLM tutorial (PDF)
progeCAD IntelliCAD and AutoCAD training 
CATIA 2D 3D design tutorial
Alibre CAD/CAM basic tutorial


Educational CAD Software Solutions
Python scripting for DOS and Windows
Other free software downloads
CADDIT CAD CAM Forum Australia


int sds_wcmatch (const char *string, const char *match);

Determine whether this matches that.

This function checks to see if one string matches another string. It can be used to find an exact literal match, or by using any of the wildcard options listed below.

The argument string is the string to be tested.

The argument match is the string against which string is checked. This function is case-sensitive. The string match may contain any of the following special characters:

Character Description

` (reverse single-quote)

Forces sds_wcmatch to check against the next character exactly. Use this with any special characters if you want to disregard their special meanings and interpret them literally.

~ (tilde)

Causes sds_wcmatch to match anything that is not the same as matchthat. It must be the first character in the string. If you have a tilde at any other point in the string, sds_wcmatch looks to match it with a tilde.


The asterisk is an unlimited wildcard. Use it to match any character, or series of characters, at any place in matchthat.


The question mark works just like the asterisk, but for just one character at a time, as opposed to a series of characters.

# @

At, pound, and period are limited wildcards. They can be used to match single characters of specific types:

@ (at)

Any alphabetic character (A-Z)

- (hyphen)

Indicates a range of characters, such as sds_wcmatch(3-7).

, (comma)

You can use more than one pattern in matchthat. Just use the comma to separate the patterns. Sds_wcmatch looks for a match to any of the patterns (a OR b), but not necessarily all of them.

# (pound)

Any numeric character (0-9)

. (period)

Any non-alphanumeric character (&,%,+, etc.)

In addition to the above, the square brackets allow even greater flexibility:

  • [xyz123] looks for a match between doesthis and any of the characters enclosed in the brackets.
  • [~xyz123] finds something that is not a match between doesthis and any of the characters enclosed in the brackets; use the tilde just as with any other characters.

This function returns RTNORM if the strings match, and RTERROR if they do not.


The following example tries to match this string: char *doesthis = "1A2B3C";


This would return RTNORM because the string "1A2B3C" does include characters from the first set: C, A, or T. Since the comma works as an OR, sds_wcmatch would return RTNORM whether or not there was a match in the second pattern.


This would return RTERROR because upper- and lower-case characters do not match.


This would return RTNORM because the string "1A2B3C" does match the pattern of numeric character, alpha character, followed by any other 4 characters.

Programming Overview of SDS (Solutions Development System)

CADDIT® is a registered trademark in Australia. All Rights Reserved. Comments concerning the content of this site should be addressed to our webmaster. progeCAD is a trademark of ProgeCAD srl. Autodesk® and AutoCAD® are both registered trademarks or trademarks of a third party, and used only for comparison purposes. All other trademarks, trade names or company names referenced herein are used for identification only and are the property of their respective owners. Legal and Terms of Use. Google. Find us on Google+.