[LCP]Regex Questions

Andrew Weaver Andrew.Weaver at tecnomen.fi
Thu Nov 29 00:48:11 UTC 2001


OK, that's great. Actually, I made exactly the same mistake the first time I
used it. I think the man page could be much clearer.

> -----Original Message-----
> From:	Chuck Martin [SMTP:nrocinu at myrealbox.com]
> Sent:	Wednesday, November 28, 2001 2:40 PM
> To:	linuxcprogramming at lists.linux.org.au
> Subject:	Re: [LCP]Regex Questions
> 
> Thanks for the explanation (and thanks also to ianezz at sodalia.it for a
> similar explanation), but especially for the sample code.  At first I
> thought, "that's exactly what I did, and it segfaulted," but then I
> realized it wasn't really.  I declared the pattern buffer with "regex_t *"
> instead of just "regex_t" because that's how the man page showed it, but
> when I changed it, and also added the '&' to each use of it, it fixed
> the problem.  And yes, I also realize now why it fixed the problem.
> 
> Chuck
> 
> _______________________________________________
> This is the Linux C Programming List
> :  http://lists.linux.org.au/listinfo/linuxcprogramming List



More information about the linuxCprogramming mailing list