1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

(Conversion to/from C): Braces {} around char* return.

This commit is contained in:
Kevin Ryde 2004-09-25 22:32:24 +00:00
parent 458dd501aa
commit 4846ae2c96

View file

@ -3610,8 +3610,8 @@ immediately after creating the Scheme string. In certain cases, Guile
can then use @var{str} directly as its internal representation.
@end deftypefn
@deftypefn {C Function} char *scm_to_locale_string (SCM str)
@deftypefnx {C Function} char *scm_to_locale_stringn (SCM str, size_t *lenp)
@deftypefn {C Function} {char *} scm_to_locale_string (SCM str)
@deftypefnx {C Function} {char *} scm_to_locale_stringn (SCM str, size_t *lenp)
Returns a C string in the current locale encoding with the same
contents as @var{str}. The C string must be freed with @code{free}
eventually, maybe by using @code{scm_frame_free}, @xref{Frames}.