Initial revision
This commit is contained in:
parent
5f7d5e8d18
commit
b2cfc4e2e7
242 changed files with 18177 additions and 0 deletions
20
src/libregexp/test2.c
Normal file
20
src/libregexp/test2.c
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "lib9.h"
|
||||
#include <regexp9.h>
|
||||
|
||||
|
||||
main(int ac, char **av)
|
||||
{
|
||||
Resub rs[10];
|
||||
Reprog *p;
|
||||
char *s;
|
||||
int i;
|
||||
|
||||
p = regcomp("[^a-z]");
|
||||
s = "\n";
|
||||
if(regexec(p, s, rs, 10))
|
||||
print("%s %lux %lux %lux\n", s, s, rs[0].sp, rs[0].ep);
|
||||
s = "0";
|
||||
if(regexec(p, s, rs, 10))
|
||||
print("%s %lux %lux %lux\n", s, s, rs[0].sp, rs[0].ep);
|
||||
exit(0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue