[LCP]Regex Questions

Chuck Martin nrocinu at myrealbox.com
Wed Nov 28 23:45:14 UTC 2001


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




More information about the linuxCprogramming mailing list