On 5/19/06, Graham Fawcett <[EMAIL PROTECTED]> wrote:
While speaking of buffers, is there an efficient, low-level way to set
a substring within an existing string? Like this but faster:

There is also "string-copy!" from the srfi-13 unit. If that is too slow, try
this ugly little piece of code:

(##core#inline "C_substring_copy" S1 S2 START1 END1 START2)

It copies S1[START1...END1] into S2[START2...].


cheers,
felix


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to