wildcard.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (c) 1983-2013 Martin Atkins and Composers Desktop Project Ltd
  3. * http://www.composersdesktop.com
  4. *
  5. This file is part of the CDP System.
  6. The CDP System is free software; you can redistribute it
  7. and/or modify it under the terms of the GNU Lesser General Public
  8. License as published by the Free Software Foundation; either
  9. version 2.1 of the License, or (at your option) any later version.
  10. The CDP System is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with the CDP System; if not, write to the Free Software
  16. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  17. 02111-1307 USA
  18. *
  19. */
  20. /*
  21. * Declarations for wildcard library
  22. */
  23. #define WILDCARD_H_RCSID "$Id: wildcard.h%v 1.1 1994/10/31 16:49:24 martin Exp $"
  24. /*
  25. * $Log: wildcard.h%v $
  26. * Revision 1.1 1994/10/31 16:49:24 martin
  27. * Initial revision
  28. *
  29. */
  30. int iswildcard(char *filename);
  31. void freeargv(char **);
  32. char **wildexpand(char *filename);
  33. #define MAXMATCH (1000)
  34. /*
  35. * The basic matcher routines
  36. */
  37. struct wildcard *wildcomp(char *);
  38. void wildfree(struct wildcard *);
  39. int SFCALLS wildmatch(char *, struct wildcard *);
  40. char **wildmatchall(struct wildcard *);