Jump to content

Regular expressions: Difference between revisions

Line 244:
{
//fprintf(stderr, "%d, %d\n", substmatch[0].rm_so, substmatch[0].rm_eo);
char *ns = (char*)malloc(substmatch[0].rm_so + 1 + strlen(ss) +
(strlen(t1) - substmatch[0].rm_eo) + 2);
memcpy(ns, t1, substmatch[0].rm_so+1);
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.