From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Lisp_Object to char* Date: 18 Dec 2003 17:59:35 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <1071343548.16244.5.camel@farmer> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071789048 10829 80.91.224.253 (18 Dec 2003 23:10:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2003 23:10:48 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Dec 19 00:10:45 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AX7I5-0003Pk-00 for ; Fri, 19 Dec 2003 00:10:45 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AX7I5-00049z-00 for ; Fri, 19 Dec 2003 00:10:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AX8DA-0006CE-2W for emacs-devel@quimby.gnus.org; Thu, 18 Dec 2003 19:09:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AX8BC-0004li-G4 for emacs-devel@gnu.org; Thu, 18 Dec 2003 19:07:42 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AX8Ab-0004S8-FD for emacs-devel@gnu.org; Thu, 18 Dec 2003 19:07:36 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AX84m-00018T-F9 for emacs-devel@gnu.org; Thu, 18 Dec 2003 19:01:04 -0500 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id DF8D920FA1; Thu, 18 Dec 2003 17:59:35 -0500 (EST) Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id AAED43CFD9; Thu, 18 Dec 2003 17:59:35 -0500 (EST) Original-To: mwingert7149@wowway.com In-Reply-To: <1071343548.16244.5.camel@farmer> Original-Lines: 8 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18754 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18754 > In the C code, how do you convert a Lisp_Object to a char* value? You can use STRINGP to check that the Lisp_Object is indeed a string and then XSTRING will get you a Lisp_String* pointer from which you can get the size with SSIZE and the char* content with SDATA. Stefan