Regular expressions: Difference between revisions

m
m (→‎{{header|REXX}}: remformatted the comments. -- ~~~~)
Line 296:
{
//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