[PATCH] Fix wcstombs documentation

Corinna Vinschen vinschen@redhat.com
Mon Apr 6 10:21:00 GMT 2009


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



More information about the Newlib mailing list