Return to t.c CVS log | Up to [DVB] / dietlibc |
version 1.99, 2001/06/01 23:27:10 | version 1.100, 2001/06/02 00:15:31 |
---|---|
Line 34 | Line 34 |
int foo; | int foo; |
int main(int argc,char *argv[]) { | int main(int argc,char *argv[]) { |
regex_t t; | |
regmatch_t rm; | |
regcomp(&t,"abc",0); | |
printf("%d\n",regexec(&t,"xabc",1,&rm,0)); | |
printf("ofs %d\n",rm.rm_so); | |
#if 0 | |
char buf[100]; | char buf[100]; |
printf("%d\n",fread(buf,1,0,stdin)); | printf("%d\n",fread(buf,1,0,stdin)); |
#endif | |
#if 0 | #if 0 |
char buf[100]; | char buf[100]; |
memset(buf,17,100); | memset(buf,17,100); |