From 6422fd511bcc9ae9cf6da0bfa4345dae087637bf Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Wed, 11 Jun 2003 22:37:34 +0000 Subject: [PATCH] (Scheme to C): In gh_scm2newstr, lenp is size_t* not int*. This changed in guile 1.6, the docs weren't updated. --- doc/ref/gh.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ref/gh.texi b/doc/ref/gh.texi index 36e8eebf1..770ac1d79 100644 --- a/doc/ref/gh.texi +++ b/doc/ref/gh.texi @@ -433,7 +433,7 @@ longs, unsigned longs, floats or doubles at memory location @var{dptr}. These routines convert the Scheme object to the given C type. @end deftypefun -@deftypefun char *gh_scm2newstr (SCM @var{str}, int *@var{lenp}) +@deftypefun char *gh_scm2newstr (SCM @var{str}, size_t *@var{lenp}) Given a Scheme string @var{str}, return a pointer to a new copy of its contents, followed by a null byte. If @var{lenp} is non-null, set @code{*@var{lenp}} to the string's length.