blob: 62d5213aec81b35cb0a69ae59e3a00ecf027979d [file] [log] [blame]
#include "lib9.h"
#include <regexp9.h>
int
main(int ac, char **av)
{
Resub rs[10];
Reprog *p;
char *s;
p = regcomp("[^a-z]");
s = "\n";
if(regexec(p, s, rs, 10))
print("%s %lux %lux %lux\n", s, s, rs[0].s.sp, rs[0].e.ep);
s = "0";
if(regexec(p, s, rs, 10))
print("%s %lux %lux %lux\n", s, s, rs[0].s.sp, rs[0].e.ep);
exit(0);
}