chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] efficient procedure for setting a substring?


From: felix winkelmann
Subject: Re: [Chicken-users] efficient procedure for setting a substring?
Date: Sat, 20 May 2006 22:55:07 +0200

On 5/19/06, Graham Fawcett <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]