aboutsummaryrefslogtreecommitdiff
path: root/stdlib/mbstowcs.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-08-13 14:05:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-08-13 14:05:01 +0200
commit017801880bc6b731263239da46b4fd3259cc4ff7 (patch)
tree2a1b47277939b28c3b530cf8380d9811b4b09dd2 /stdlib/mbstowcs.c
parent8cac1f263528d6e943554e175f39e03d2a4a3d26 (diff)
downloadglibc-017801880bc6b731263239da46b4fd3259cc4ff7.zip
glibc-017801880bc6b731263239da46b4fd3259cc4ff7.tar.gz
glibc-017801880bc6b731263239da46b4fd3259cc4ff7.tar.bz2
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 in princple.
Diffstat (limited to 'stdlib/mbstowcs.c')
-rw-r--r--stdlib/mbstowcs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/stdlib/mbstowcs.c b/stdlib/mbstowcs.c
index 5bc77a2..d8b91a7 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)
{