version 1.2, 1996/06/26 05:42:29 |
version 1.3, 2001/11/19 19:02:17 |
|
|
|
|
int |
int |
STRNCMP(s1, s2, len) |
STRNCMP(s1, s2, len) |
register char *s1,*s2; |
char *s1,*s2; |
register int len; |
int len; |
{ |
{ |
if (l_onecase) { |
if (l_onecase) { |
do |
do |
|
|
convexp(re) |
convexp(re) |
char *re; /* unconverted irregular expression */ |
char *re; /* unconverted irregular expression */ |
{ |
{ |
register char *cre; /* pointer to converted regular expression */ |
char *cre; /* pointer to converted regular expression */ |
|
|
/* allocate room for the converted expression */ |
/* allocate room for the converted expression */ |
if (re == NIL) |
if (re == NIL) |
|
|
static void |
static void |
expconv() |
expconv() |
{ |
{ |
register char *cs; /* pointer to current symbol in converted exp */ |
char *cs; /* pointer to current symbol in converted exp */ |
register char c; /* character being processed */ |
char c; /* character being processed */ |
register char *acs; /* pinter to last alternate */ |
char *acs; /* pinter to last alternate */ |
register int temp; |
int temp; |
|
|
/* let the conversion begin */ |
/* let the conversion begin */ |
acs = NIL; |
acs = NIL; |
|
|
|
|
char * |
char * |
expmatch (s, re, mstring) |
expmatch (s, re, mstring) |
register char *s; /* string to check for a match in */ |
char *s; /* string to check for a match in */ |
register char *re; /* a converted irregular expression */ |
char *re; /* a converted irregular expression */ |
register char *mstring; /* where to put whatever matches a \p */ |
char *mstring; /* where to put whatever matches a \p */ |
{ |
{ |
register char *cs; /* the current symbol */ |
char *cs; /* the current symbol */ |
register char *ptr,*s1; /* temporary pointer */ |
char *ptr,*s1; /* temporary pointer */ |
boolean matched; /* a temporary boolean */ |
boolean matched; /* a temporary boolean */ |
|
|
/* initial conditions */ |
/* initial conditions */ |