home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pccts1.zip
/
SUPPORT
/
REXPR
/
TEST.C
< prev
Wrap
C/C++ Source or Header
|
1993-09-01
|
393b
|
19 lines
#include <stdio.h>
/*
* test for rexpr().
* To make this test:
* cc -o rexpr test.c rexpr.c
* Then from command line type:
* rexpr r string
* where r is the regular expression that decribes a language
* and string is the string to verify.
*/
main(argc,argv)
int argc;
char *argv[];
{
if ( argc!=3 ) fprintf(stderr,"rexpr: expr s\n");
else printf("%d\n", rexpr(argv[1], argv[2]));
}