Function: WMATCH Purpose: Matches a test string with the mask string which contains wildcards. Category: UTILITY File: wmatch.c Author: K.G. Begeman Use: INTEGER WMATCH( TEST , Input CHARACTER*(*) MASK , Input CHARACTER*(*) WILDCARD , Input CHARACTER*1 CASE ) Input INTEGER WMATCH Returns non-zero if matched, zero if not. TEST String to test agains MASK. MASK String which contains the mask with wildcards. WILDCARD Character which represents the wildcard. CASE If non-zero matching is case sensitive, if zero matching is case insensitive. Updates: Mar 8, 1991: KGB Document created Nov 12, 1992: KGB Bug repaired Jan 18, 1993: VOG printf removed Aug 18, 1993: VOG { r = 1; break; } replaced by return(1); in inner loop.