This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix wcstombs documentation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]