Add in-source documentation of `scm_to_stringn ()'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 6 Jan 2010 22:52:40 +0000 (23:52 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 7 Jan 2010 10:10:35 +0000 (11:10 +0100)
* libguile/strings.c (scm_to_stringn): Add documentation comment.

libguile/strings.c

index d3bb325..d977655 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1998,2000,2001, 2004, 2006, 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1998,2000,2001, 2004, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
  * 
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
@@ -1605,7 +1605,10 @@ scm_to_locale_stringn (SCM str, size_t *lenp)
                          scm_i_get_conversion_strategy (SCM_BOOL_F));
 }
 
-/* Low-level scheme to C string conversion function.  */
+/* Return a malloc(3)-allocated buffer containing the contents of STR encoded
+   according to ENCODING.  If LENP is non-NULL, set it to the size in bytes of
+   the returned buffer.  If the conversion to ENCODING fails, apply the strategy
+   defined by HANDLER.  */
 char *
 scm_to_stringn (SCM str, size_t *lenp, const char *encoding,
                 scm_t_string_failed_conversion_handler handler)