[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lisp_Object to char*
From: |
Stefan Monnier |
Subject: |
Re: Lisp_Object to char* |
Date: |
18 Dec 2003 17:59:35 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> 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