Check In tool source code based on Build tool project revision r1655.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8964 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
19
BaseTools/Source/C/VfrCompile/Pccts/support/rexpr/test.c
Normal file
19
BaseTools/Source/C/VfrCompile/Pccts/support/rexpr/test.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
#include "rexpr.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]));
|
||||
}
|
Reference in New Issue
Block a user