From 14dce556df2b80dda12ede4a3656206ac3b6bf77 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Wed, 11 Jun 2003 22:36:08 +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 884393998..f630b534d 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.