From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Kjetil S. Matheussen" Newsgroups: gmane.lisp.guile.devel Subject: Re: scm_i_* in Snd Date: Wed, 04 Jun 2008 00:42:50 +0200 (CEST) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1212533025 19279 80.91.229.12 (3 Jun 2008 22:43:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2008 22:43:45 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 04 00:44:26 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K3fEo-0004ek-8w for guile-devel@m.gmane.org; Wed, 04 Jun 2008 00:44:18 +0200 Original-Received: from localhost ([127.0.0.1]:39299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3fE1-0002uW-V8 for guile-devel@m.gmane.org; Tue, 03 Jun 2008 18:43:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3fDu-0002r5-HV for guile-devel@gnu.org; Tue, 03 Jun 2008 18:43:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3fDq-0002hj-8q for guile-devel@gnu.org; Tue, 03 Jun 2008 18:43:21 -0400 Original-Received: from [199.232.76.173] (port=57875 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3fDq-0002hU-1r for guile-devel@gnu.org; Tue, 03 Jun 2008 18:43:18 -0400 Original-Received: from smtp.getmail.no ([84.208.20.33]:33034) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3fDn-0006DT-AC for guile-devel@gnu.org; Tue, 03 Jun 2008 18:43:16 -0400 Original-Received: from pmxchannel-daemon.no-osl-m323-srv-009-z2.isp.get.no by no-osl-m323-srv-009-z2.isp.get.no (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) id <0K1W00I07SFQ9E00@no-osl-m323-srv-009-z2.isp.get.no> for guile-devel@gnu.org; Wed, 04 Jun 2008 00:43:02 +0200 (CEST) Original-Received: from smtp.getmail.no ([10.5.16.1]) by no-osl-m323-srv-009-z2.isp.get.no (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0K1W007TPSFKGC20@no-osl-m323-srv-009-z2.isp.get.no> for guile-devel@gnu.org; Wed, 04 Jun 2008 00:42:56 +0200 (CEST) Original-Received: from cm-84.215.136.96.getinternet.no ([84.215.136.96]) by no-osl-m323-srv-009-z1.isp.get.no (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0K1W000HNSFJRD80@no-osl-m323-srv-009-z1.isp.get.no> for guile-devel@gnu.org; Wed, 04 Jun 2008 00:42:56 +0200 (CEST) In-reply-to: X-X-Sender: kjetil@ttleush X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7302 Archived-At: Clinton Ebadi; > > Clinton Ebadi writes: > >>> Is this okay, and in case not, is there a better way to convert a >>> char* into a guile string? >> >> SCM_API SCM scm_from_locale_string (const char *str); >> SCM_API SCM scm_from_locale_stringn (const char *str, size_t len); >> SCM_API SCM scm_take_locale_string (char *str); >> SCM_API SCM scm_take_locale_stringn (char *str, size_t len); > > Err, the other way around > > SCM_API char *scm_to_locale_string (SCM str); > SCM_API char *scm_to_locale_stringn (SCM str, size_t *lenp); > SCM_API size_t scm_to_locale_stringbuf (SCM str, char *buf, size_t > max_len); > Thanks for both answers. First time you answered my question, second time you answered what I wanted to know. :-)