This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] mbstowcs: Remove outdated comment
- From: fweimer at redhat dot com (Florian Weimer)
- To: libc-alpha at sourceware dot org
- Date: Mon, 13 Aug 2018 13:49:07 +0200
- Subject: [PATCH] mbstowcs: Remove outdated comment
ISO C requires that there is no effect on any global conversion state,
so the change in commit 9f097308c7465443765d1e25699a4cf33eff5455 was
correct.
2018-08-13 Florian Weimer <fweimer@redhat.com>
* stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
diff --git a/stdlib/mbstowcs.c b/stdlib/mbstowcs.c
index 5bc77a2ea2..d8b91a73de 100644
--- a/stdlib/mbstowcs.c
+++ b/stdlib/mbstowcs.c
@@ -22,12 +22,7 @@
/* Convert the string of multibyte characters in S to `wchar_t's in
PWCS, writing no more than N. Return the number written,
- or (size_t) -1 if an invalid multibyte character is encountered.
-
- Attention: this function should NEVER be intentionally used.
- The interface is completely stupid. The state is shared between
- all conversion functions. You should use instead the restartable
- version `mbsrtowcs'. */
+ or (size_t) -1 if an invalid multibyte character is encountered. */
size_t
mbstowcs (wchar_t *pwcs, const char *s, size_t n)
{