Not positive about that. BUT, I do think that the solution is stupidly simple. I haven't tried it yet, but a friend mentioned this:
instead of a char** start, it should simply be a char*.
And then, when I pass it to Tcl_RegExpRange, I should pass the address of the pointer: &start.
char**...
Ok. I'm really not sure what I'm doing wrong here (hence the post). It may be blaringly obvious, but I can't see it. I always get a seg fault when I hit the function call Tcl_RegExpRange in this snippet of code:
string reg_1("(\\d+)(?:-(\\d+))?");
string fullReg(reg_1 + "(?::" + reg_1 + ")?")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.