guile-user
[Top][All Lists]
Advanced

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

Re: Strings from C?


From: Chris Cramer
Subject: Re: Strings from C?
Date: Thu, 18 Oct 2001 00:49:10 -0500
User-agent: Mutt/1.2.5i

On Tue, Oct 16, 2001 at 07:24:57PM -0600, Robert A. Uhl wrote:
> Given that one already has a string, what is the proper way to return
> am SCM string?  I have read the data-rep document, and have been
> unenlightened--did I miss something?

scm_makfrom0str()

e.g.

#include <libguile.h>

SCM
foo(void)
{
        return scm_makfrom0str("bar");
}

I usually look this stuff up in the Guile source. In a perfect world,
it would be documented in the manual, but we're not there yet.

-- 
C. Ray C. aka Christopher Cramer
address@hidden
http://www.pyro.net/~crayc/



reply via email to

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