[Top][All Lists]

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

null terminated strings (was: argz SMOB)

From: Andreas Voegele
Subject: null terminated strings (was: argz SMOB)
Date: Fri, 16 Jan 2004 10:10:01 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

Paul Jarc writes:

> Brian S McQueen <address@hidden> wrote:
>> Particularly, I wonder about the best way to produce a null
>> terminated C string from a scheme string.
> char* s=SCM_STRING_CHARS(scheme_string);

Is it necessary or desirable to use the macro
SCM_STRING_COERCE_0TERMINATION_X if one uses Guile 1.6?  I've found
the following statement in the file libguile/strings.c that comes with
Guile 1.6.4:

"[...] we promise that strings are null-terminated."

And in guile-readline/Changelog:

"Remove calls to SCM_STRING_COERCE_0TERMINATION_X.  Since the
substring type is gone, all strings are 0-terminated anyway."

reply via email to

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