version 1.5, 2000/03/23 22:15:33 |
version 1.6, 2000/04/14 10:30:31 |
|
|
/* |
/* |
* |
* |
* match.c |
* match.c |
* |
* |
* Author: Tatu Ylonen <ylo@cs.hut.fi> |
* Author: Tatu Ylonen <ylo@cs.hut.fi> |
* |
* |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
* All rights reserved |
* All rights reserved |
* |
* |
* Created: Thu Jun 22 01:17:50 1995 ylo |
* Created: Thu Jun 22 01:17:50 1995 ylo |
* |
* |
* Simple pattern matching, with '*' and '?' as wildcards. |
* Simple pattern matching, with '*' and '?' as wildcards. |
* |
* |
*/ |
*/ |
|
|
#include "includes.h" |
#include "includes.h" |
|
|
* and * as wildcards), and zero if it does not match. |
* and * as wildcards), and zero if it does not match. |
*/ |
*/ |
|
|
int |
int |
match_pattern(const char *s, const char *pattern) |
match_pattern(const char *s, const char *pattern) |
{ |
{ |
for (;;) { |
for (;;) { |