That was it. Thanks Chris Frederick On Sat, 2004-01-03 at 16:51, Patrick McCabe wrote: > I haven't used the regex library, but it looks to me like you should be > creating regex_t and regmatch_t structures and passing their addresses > to the appropriate functions rather than creating uninitialized pointers > preg and pmatch and passing their (random) values. > > Patrick McCabe > > Chris Frederick wrote: > > Not sure if this is the right place to ask, but are there any c++ gurus > > here? I need a hand on a project I'm working on. > > > > I'm trying to do some regex functions. Everything works fine until I > > try to reference the rm_eo element of a match. If I comment out that > > line, it works fine, but if the line is left in, it segfaults on the > > regcomp (about 15 lines before the rm_eo line). > > > > Here's the code in question: > > http://cdf123.net/wmacpi_temp/wmacpi_temp-1.3-beta/ > > wmacpi_temp.cc line 389 segfaults when line 405 is uncommented. > > test it with "./wmacpi_temp -rc config" > > > > Is there something wrong with my code? or my libc? I'm running Mandrake > > 9.2 as my development machines if that helps. > > > > Thanks, and sorry if this is too OT > > > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > http://www.mn-linux.org tclug-list at mn-linux.org > https://mailman.real-time.com/mailman/listinfo/tclug-list -- Chris Frederick <cdf123 at cdf123.com> _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota http://www.mn-linux.org tclug-list at mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-list