mpiCompareWildcard method overview

The mpiCompareWildcard method compares a string (passed in pActual) with a wildcard pattern (pPattern) to determine whether it matches.

For example, if pPattern is A*123 and pActual is ABCD123, the return status will be MPI_CMP_EQUAL because pActual does match the pPattern string.

MPIRC mpiCompareWildcard (const char 
 *pPattern,int  nPatternLen,const char 
 *pActual,int  nActualLen)

Inputs

pPattern
Wildcard pattern
nPatternLen
Length of the pPattern string.
pActual
Actual data which might match the wildcard.
nActualLen
Length of the actual data.

Outputs

pBuf
A buffer to receive the wildcard value if one exists.
pLen
Size of the buffer on input and the length of the wildcard value on output.

Returns

MPI_CMP_EQUAL
Wildcard matches.
MPI_CMP_LESS
Wildcard does not match.