home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 620.lha / WildCard / WildCard.readme < prev    next >
Text File  |  1991-10-01  |  1KB  |  26 lines

  1. WildCard.c   by Frank J. Perricone
  2.  
  3. This program is just a simple piece of C code that matches wildcard
  4. strings.  Pass the function wildcardmatch() two strings; the first one
  5. may contain as many wildcards as you like.  Wildcards are * which matches
  6. 0 or more characters, and ? which matches exactly one character.  The
  7. function returns TRUE or FALSE to say if they match.  This is case-
  8. sensitive.
  9.  
  10. My purpose in releasing this is for educational purposes, and so that
  11. some poor sap can be spared the trouble of writing this function.  Note
  12. that it is recursive, so if you're going to be comparing very large
  13. strings better up your stack a bit.
  14.  
  15. The main program just tests this on its two parameters.  So type
  16.   Wildcard <pattern> <string>
  17. to see if they match.  If you think of a use for this program as is,
  18. I will be surprised.
  19.  
  20. Feel free to use the source code, however, which IS useful.  Use it however
  21. you like.  It is in the public domain, as long as someone else (maybe the
  22. makers of UN*X?) hasn't copyrighted it first; if so, I'm sorry.
  23.  
  24. For some help or advice or a friendly whatever call my BBS, the Crystal
  25. Ship, at 907-364-3362.
  26.