5 /* substitute into one string using the matches from the last regexec() */
7 regsub(char *sp, /* source string */
8 char *dp, /* destination string */
10 Resub *mp, /* subexpression elements */
11 int ms) /* number of elements pointed to by mp */
31 if(mp!=0 && mp[i].sp != 0 && ms>i)
51 if(mp!=0 && mp[0].sp != 0 && ms>0)
53 ssp < mp[0].ep; ssp++)