|
Aaron:
You
can't use the iStriMask() function to test for an asterisk, because the asterisk
is reserved for use in that function as a wildcard. At present there doesn't
seem to be a function specific to your needs, but you could "brute" force it
using the following construction:
// see
if a string has the "*" character in it...
string(80) sText;
string(2) sChar;
iN =
iStrlen_STR(sText);
for(i=0;i<iN;i++) {
Substr_STR (sChar, sText, i,
1);
if(iStrncmp_STR(sChar, "*", 1,
STR_CASE_TOLERANT)==0) break;
} if(i<iN) {
// It was
found...
}
Dr. Stephen J. Cheesman Software and services for effective earth science decision-making. Free Oasis montaj interface now available at www.geosoft.com Geosoft Inc. Tel. (416) 369-0111
|
- [gxnet]: iStriMask_STR() Aaron Balasch
- Stephen Cheesman
