retest.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* from UCB 5.1 (Berkeley) 6/5/85 */
#include <ctype.h>
int l_onecase = 0;
to alphanumerics */
char * Start;
char * _escaped;
char * convexp();
char * expmatch();
main()
{
char reg[132];
char *ireg;
char str[132];
char *match;
char matstr[132];
char c;
while (1) {
printf ("\nexpr: ");
while(*match) {
switch (*match) {
case '\\':
case '(':
case ')':
case '|':
break;
default:
else
break;
}
match++;
}
printf("\n");
getchar();
while(1) {
printf ("string: ");
while ((c = getchar()) != '\n')
*match++ = c;
*match = 0;
if (str[0] == '#')
break;
matstr[0] = 0;
_escaped = 0;
if (match == 0)
printf ("FAILED\n");
else
}
}
}