[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.
>
> SCM_STRING_COERCE_0TERMINATION_X(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."
- argz SMOB, Brian S McQueen, 2004/01/05
- Re: argz SMOB, Daniel Skarda, 2004/01/06
- Re: argz SMOB, Brian S McQueen, 2004/01/15
- Re: argz SMOB, Paul Jarc, 2004/01/15
- null terminated strings (was: argz SMOB),
Andreas Voegele <=
- Message not available
- Re: null terminated strings, Andreas Voegele, 2004/01/16
- Re: null terminated strings, Roland Orre, 2004/01/16
- Re: null terminated strings, Andreas Voegele, 2004/01/16
- Re: null terminated strings, Brian S McQueen, 2004/01/16
- Re: null terminated strings, Paul Jarc, 2004/01/16
- Re: null terminated strings, Tom Lord, 2004/01/16
- Re: null terminated strings, Paul Jarc, 2004/01/16
- Re: null terminated strings, Roland Orre, 2004/01/16
- Re: null terminated strings, Ken Anderson, 2004/01/19
- Re: null terminated strings, Per Bothner, 2004/01/19