mpiExtractWildcard method overview
The mpiExtractWildcard method compares a string (passed in pActual) with a wildcard pattern (pPattern) to see whether it matches. If it does, the string that substitutes for the wildcard value is returned in the buffer provided by the caller in pBuf.
For example, if pPattern is A*123 and pActual is ABCD123, the value returned in pBuf will be BCD.
MPIRC mpiExtractWildcard (const char
*pPattern,int nPatternLen,const char
*pActual,int nActualLen,char *pBuf,int
*pLen)
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