summaryrefslogtreecommitdiff
path: root/lib/mbsrtowcs-state.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-12-21 14:45:44 +0100
committerBruno Haible <bruno@clisp.org>2008-12-21 14:45:44 +0100
commit6906a95bfc7fc83e4ffa7ef2f68e377157d926f7 (patch)
tree72a48d1d9d0fdd2d02278ae8e6a013cca6a48255 /lib/mbsrtowcs-state.c
parentda3fe7009a18cbf8d7f1f43c02cedaf8a23281e4 (diff)
downloadgnulib-6906a95bfc7fc83e4ffa7ef2f68e377157d926f7.tar.gz
New module 'mbsnrtowcs'.
Diffstat (limited to 'lib/mbsrtowcs-state.c')
-rw-r--r--lib/mbsrtowcs-state.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/mbsrtowcs-state.c b/lib/mbsrtowcs-state.c
new file mode 100644
index 0000000000..8216c790d7
--- /dev/null
+++ b/lib/mbsrtowcs-state.c
@@ -0,0 +1,23 @@
+/* Convert string to wide string.
+ Copyright (C) 2008 Free Software Foundation, Inc.
+ Written by Bruno Haible <bruno@clisp.org>, 2008.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+#include <config.h>
+
+#include <wchar.h>
+
+/* Internal state used by the functions mbsrtowcs() and mbsnrtowcs(). */
+mbstate_t _gl_mbsrtowcs_state;