hbase

heirloom base
git clone git://git.2f30.org/hbase
Log | Files | Refs | README

test2.c (340B)


      1 #include "lib9.h"
      2 #include <regexp9.h>
      3 
      4 
      5 main(int ac, char **av)
      6 {
      7 	Resub rs[10];
      8 	Reprog *p;
      9 	char *s;
     10 	int i;
     11 
     12 	p = regcomp("[^a-z]");
     13 	s = "\n";
     14 	if(regexec(p, s, rs, 10))
     15 		print("%s %lux %lux %lux\n", s, s, rs[0].sp, rs[0].ep);
     16 	s = "0";
     17 	if(regexec(p, s, rs, 10))
     18 		print("%s %lux %lux %lux\n", s, s, rs[0].sp, rs[0].ep);
     19 	exit(0);
     20 }