unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Andreas Voegele <voegelas@gmx.net>
Subject: null terminated strings (was: argz SMOB)
Date: Fri, 16 Jan 2004 10:10:01 +0100	[thread overview]
Message-ID: <87oet4ntsm.fsf_-_@ID-28718.user.uni-berlin.de> (raw)
In-Reply-To: <m3r7y0spxn.fsf@multivac.cwru.edu> (Paul Jarc's message of "Thu, 15 Jan 2004 19:21:50 -0500")

Paul Jarc writes:

> Brian S McQueen <bqueen@nas.nasa.gov> 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."


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2004-01-16  9:10 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-05 17:40 argz SMOB Brian S McQueen
2004-01-06 19:54 ` Daniel Skarda
2004-01-08 16:44   ` Brian S McQueen
2004-01-09 14:08     ` Daniel Skarda
2004-01-12 16:08       ` Brian S McQueen
2004-01-15 18:43   ` Brian S McQueen
2004-01-16  0:21     ` Paul Jarc
2004-01-16  9:10       ` Andreas Voegele [this message]
     [not found]         ` <1074245327.6733.9.camel@localhost>
2004-01-16 10:17           ` null terminated strings Andreas Voegele
2004-01-16 11:02             ` Roland Orre
2004-01-16 12:24               ` Andreas Voegele
2004-01-16 18:20                 ` Brian S McQueen
2004-01-16 20:36                   ` Paul Jarc
2004-01-16 21:06                     ` Tom Lord
2004-01-16 21:02                       ` Paul Jarc
2004-01-16 21:27                         ` Roland Orre
2004-01-19 17:28                       ` Ken Anderson
2004-01-19 18:46                         ` Per Bothner
2004-01-19 19:16                           ` Ken Anderson
  -- strict thread matches above, loose matches on Subject: below --
2004-01-16 10:09 null terminated strings (was: argz SMOB) Roland Orre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oet4ntsm.fsf_-_@ID-28718.user.uni-berlin.de \
    --to=voegelas@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).