[Top][All Lists]

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

Re: [Chicken-users] c-string return question

From: Jörg F . Wittenberger
Subject: Re: [Chicken-users] c-string return question
Date: 13 Oct 2011 19:52:22 +0200

On Oct 13 2011, Jim Ursetto wrote:

On Oct 13, 2011, at 11:02 AM, Jörg F. Wittenberger wrote:

ages ago I wrote these simple lines:

Out of curiosity, would this suit your purposes instead:

(##sys#char->utf8-string (integer->char x))

Looks good.

I did not notice that this made it into the chicken core since
I wrote my code.

NB:  The code I posted is actually a good test case for the
c-string return value in the chicken FFI.
This code was actually converted to C from an equivalent Scheme
implementation (good enough by all counts for the actual purpose
at hand) to learn about Chickens c-string return handling.

So I'll stick with the test case and remove the "static" keyword
from the buffer definition once I have an updated gcc in my
production environment.

Have Fun


reply via email to

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