774 } |
774 } |
775 curbuf = curbuf->next; |
775 curbuf = curbuf->next; |
776 } while (curbuf); |
776 } while (curbuf); |
777 memcpy(destptr, str.ptr+srcidx, str.length-srcidx); |
777 memcpy(destptr, str.ptr+srcidx, str.length-srcidx); |
778 |
778 |
|
779 /* Free index buffer */ |
|
780 scstrrepl_free_ibuf(firstbuf); |
|
781 |
779 return result; |
782 return result; |
780 } |
783 } |
781 |
784 |
782 sstr_t scstrreplacen(scstr_t str, scstr_t pattern, |
785 sstr_t scstrreplacen(scstr_t str, scstr_t pattern, |
783 scstr_t replacement, size_t replmax) { |
786 scstr_t replacement, size_t replmax) { |