Deleted Added
sdiff udiff text old ( 26492 ) new ( 90045 )
full compact
1/*
2 * Copyright (c) 1989, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Guido van Rossum.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 23 unchanged lines hidden (view full) ---

32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94";
39#endif /* LIBC_SCCS and not lint */
40
41/*
42 * Function fnmatch() as specified in POSIX 1003.2-1992, section B.6.
43 * Compares a filename or pathname to a pattern.
44 */
45
46#include <ctype.h>
47#include <fnmatch.h>
48#include <string.h>
49#include <stdio.h>
50
51#include "collate.h"
52
53#define EOS '\0'
54
55#define RANGE_MATCH 1
56#define RANGE_NOMATCH 0
57#define RANGE_ERROR (-1)
58
59static int rangematch __P((const char *, char, int, char **));
60
61int
62fnmatch(pattern, string, flags)
63 const char *pattern, *string;
64 int flags;
65{
66 const char *stringstart;
67 char *newp;

--- 164 unchanged lines hidden ---