wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

test2.c (341B)


      1 #include "plan9.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 }