This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Fix wcstombs documentation
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Sat, 4 Apr 2009 18:01:01 +0200
- Subject: [PATCH] Fix wcstombs documentation
- Reply-to: newlib at sourceware dot org
Hi,
per a report on the Cygwin ML I applied the below patch to the
wcstombs documentation (fixing the "const" specifier) as obvious.
Corinna
* libc/stdlib/wcstombs.c: Fix datatypes in documentation.
Index: libc/stdlib/wcstombs.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdlib/wcstombs.c,v
retrieving revision 1.4
diff -u -p -r1.4 wcstombs.c
--- libc/stdlib/wcstombs.c 23 Apr 2004 21:44:22 -0000 1.4
+++ libc/stdlib/wcstombs.c 4 Apr 2009 15:59:51 -0000
@@ -7,13 +7,13 @@ INDEX
ANSI_SYNOPSIS
#include <stdlib.h>
- int wcstombs(const char *<[s]>, wchar_t *<[pwc]>, size_t <[n]>);
+ int wcstombs(char *<[s]>, const wchar_t *<[pwc]>, size_t <[n]>);
TRAD_SYNOPSIS
#include <stdlib.h>
int wcstombs(<[s]>, <[pwc]>, <[n]>)
- const char *<[s]>;
- wchar_t *<[pwc]>;
+ char *<[s]>;
+ const wchar_t *<[pwc]>;
size_t <[n]>;
DESCRIPTION
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat