June 17th, 2003, 06:42 PM
I have a question that falls in line with this, except I need to get characters from within the string-- not necessarily at the beginning.
I'm using regexec to pull out an array of substring offsets; number of charactes to the beginning and number of characters to the end of the matches. Right now I'm only pulling out a single match and need to place it in another string. I've tried several variations of strncpy but haven't come upon a working formula. Is there a function that does this? -- perhaps related to the regex functions (I'd think they'd give something since they give the offsets).
Thanks in advance