Index: testsuites/psxtests/Makefile.am
===================================================================
--- testsuites/psxtests/Makefile.am	(revision 6acc556a8e46306ca5df22115a220601f216af88)
+++ testsuites/psxtests/Makefile.am	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -1608,5 +1608,87 @@
 	psxhdrs/arpa/inet/inet_ntop.c \
 	psxhdrs/arpa/inet/inet_ntoa.c \
-	psxhdrs/arpa/inet/inet_pton.c
+	psxhdrs/arpa/inet/inet_pton.c \
+	psxhdrs/wchar/btowc.c \
+	psxhdrs/wchar/fgetwc.c \
+	psxhdrs/wchar/fgetws.c \
+	psxhdrs/wchar/fputwc.c \
+	psxhdrs/wchar/fputws.c \
+	psxhdrs/wchar/fwide.c \
+	psxhdrs/wchar/fwprintf.c \
+	psxhdrs/wchar/fwscanf.c \
+	psxhdrs/wchar/getwc.c \
+	psxhdrs/wchar/getwchar.c \
+	psxhdrs/wchar/iswalnum.c \
+	psxhdrs/wchar/iswalpha.c \
+	psxhdrs/wchar/iswcntrl.c \
+	psxhdrs/wchar/iswctype.c \
+	psxhdrs/wchar/iswdigit.c \
+	psxhdrs/wchar/iswgraph.c \
+	psxhdrs/wchar/iswlower.c \
+	psxhdrs/wchar/iswprint.c \
+	psxhdrs/wchar/iswpunct.c \
+	psxhdrs/wchar/iswspace.c \
+	psxhdrs/wchar/iswupper.c \
+	psxhdrs/wchar/iswxdigit.c \
+	psxhdrs/wchar/mbrlen.c \
+	psxhdrs/wchar/mbrtowc.c \
+	psxhdrs/wchar/mbsinit.c \
+	psxhdrs/wchar/mbsnrtowcs.c \
+	psxhdrs/wchar/mbsrtowcs.c \
+	psxhdrs/wchar/open_wmemstream.c \
+	psxhdrs/wchar/putwc.c \
+	psxhdrs/wchar/putwchar.c \
+	psxhdrs/wchar/swprintf.c \
+	psxhdrs/wchar/swscanf.c \
+	psxhdrs/wchar/towlower.c \
+	psxhdrs/wchar/towupper.c \
+	psxhdrs/wchar/ungetwc.c \
+	psxhdrs/wchar/vfwprintf.c \
+	psxhdrs/wchar/vfwscanf.c \
+	psxhdrs/wchar/vswprintf.c \
+	psxhdrs/wchar/vswscanf.c \
+	psxhdrs/wchar/vwprintf.c \
+	psxhdrs/wchar/vwscanf.c \
+	psxhdrs/wchar/wcpcpy.c \
+	psxhdrs/wchar/wcpncpy.c \
+	psxhdrs/wchar/wcrtomb.c \
+	psxhdrs/wchar/wcscasecmp.c \
+	psxhdrs/wchar/wcscasecmp_l.c \
+	psxhdrs/wchar/wcscat.c \
+	psxhdrs/wchar/wcschr.c \
+	psxhdrs/wchar/wcscmp.c \
+	psxhdrs/wchar/wcscoll.c \
+	psxhdrs/wchar/wcscoll_l.c \
+	psxhdrs/wchar/wcscpy.c \
+	psxhdrs/wchar/wcscspn.c \
+	psxhdrs/wchar/wcsdup.c \
+	psxhdrs/wchar/wcsnlen.c \
+	psxhdrs/wchar/wcsnrtombs.c \
+	psxhdrs/wchar/wcspbrk.c \
+	psxhdrs/wchar/wcsrchr.c \
+	psxhdrs/wchar/wcsrtombs.c \
+	psxhdrs/wchar/wcsspn.c \
+	psxhdrs/wchar/wcsstr.c \
+	psxhdrs/wchar/wcstod.c \
+	psxhdrs/wchar/wcstof.c \
+	psxhdrs/wchar/wcstok.c \
+	psxhdrs/wchar/wcstol.c \
+	psxhdrs/wchar/wcstold.c \
+	psxhdrs/wchar/wcstoll.c \
+	psxhdrs/wchar/wcstoul.c \
+	psxhdrs/wchar/wcstoull.c \
+	psxhdrs/wchar/wcswidth.c \
+	psxhdrs/wchar/wcsxfrm.c \
+	psxhdrs/wchar/wcsxfrm_l.c \
+	psxhdrs/wchar/wctob.c \
+	psxhdrs/wchar/wctype.c \
+	psxhdrs/wchar/wcwidth.c \
+	psxhdrs/wchar/wmemchr.c \
+	psxhdrs/wchar/wmemcmp.c \
+	psxhdrs/wchar/wmemcpy.c \
+	psxhdrs/wchar/wmemmove.c \
+	psxhdrs/wchar/wmemset.c \
+	psxhdrs/wchar/wprintf.c \
+	psxhdrs/wchar/wscanf.c
 
 
Index: testsuites/psxtests/psxhdrs/wchar/btowc.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/btowc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/btowc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief btowc() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  int number;
+  
+  number = 0;
+  return (btowc(number));
+}
Index: testsuites/psxtests/psxhdrs/wchar/fgetwc.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/fgetwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/fgetwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief fgetwc() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  FILE *file;
+
+  file = (void *) 0;
+  return fgetwc(file);
+}
Index: testsuites/psxtests/psxhdrs/wchar/fgetws.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/fgetws.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/fgetws.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief fgetws() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  FILE *file;
+  wchar_t* wcr;
+  wchar_t wc;
+
+  wc = L'\x3b1';
+  wcr = &wc;
+  file = (void *) 0;
+  return *fgetws(wcr, 0, file);
+}
Index: testsuites/psxtests/psxhdrs/wchar/fputwc.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/fputwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/fputwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief fputwc() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t wc;
+  FILE *file;
+
+  wc = L'\x3b1';
+  file = (void *) 0;
+  return fputwc(wc, file);
+}
Index: testsuites/psxtests/psxhdrs/wchar/fputws.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/fputws.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/fputws.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief fputws() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  FILE *file;
+  const wchar_t *wcr;
+  wchar_t wc;
+
+  wc = L'\x3b1';
+  wcr = &wc;
+  file = (void *)0;
+  return fputws(wcr, file);
+}
Index: testsuites/psxtests/psxhdrs/wchar/fwide.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/fwide.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/fwide.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief fwide() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  FILE *file;
+  int number;
+
+  file = (void *)0;
+  number = 0;
+  return fwide(file, number);
+}
Index: testsuites/psxtests/psxhdrs/wchar/fwprintf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/fwprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/fwprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief fwprintf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  FILE *file;
+  const wchar_t *wcr;
+  wchar_t wc;
+
+  wc = L'\x3b1';
+  wcr = &wc;
+  file = (void *)0;
+  return fwprintf(file, wcr);
+}
Index: testsuites/psxtests/psxhdrs/wchar/fwscanf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/fwscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/fwscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief fwscanf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  FILE *file;
+  const wchar_t *wcr;
+  wchar_t wc;
+
+  wc = L'\x3b1';
+  wcr = &wc;
+  file = (void *)0;
+  return fwscanf(file, wcr);
+}
Index: testsuites/psxtests/psxhdrs/wchar/getwc.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/getwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/getwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief getwc() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  FILE *file;
+
+  file = (void *)0;
+  return getwc(file);
+}
Index: testsuites/psxtests/psxhdrs/wchar/getwchar.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/getwchar.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/getwchar.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,33 @@
+/**
+ *  @file
+ *  @brief getwchar() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  return getwchar();
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswalnum.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswalnum.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswalnum.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief iswalnum() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswalnum(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswalpha.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswalpha.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswalpha.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief iswalpha() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswalpha(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswcntrl.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswcntrl.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswcntrl.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief iswcntrl() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswcntrl(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswctype.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswctype.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswctype.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,43 @@
+/**
+ *  @file
+ *  @brief iswctype() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+  wctype_t wc;
+
+  wi = 0;
+  wc = 0;
+  return iswctype(wi, wc);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswdigit.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswdigit.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswdigit.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief iswdigit() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswdigit(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswgraph.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswgraph.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswgraph.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief iswgraph() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswgraph(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswlower.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswlower.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswlower.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief iswlower() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswlower(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswprint.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswprint.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswprint.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief iswprint() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswprint(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswpunct.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswpunct.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswpunct.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief iswpunct() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswpunct(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswspace.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswspace.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswspace.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief iswspace() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswspace(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswupper.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswupper.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswupper.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief iswupper() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswupper(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/iswxdigit.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/iswxdigit.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/iswxdigit.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief iswxdigit() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return iswxdigit(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/mbrlen.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/mbrlen.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/mbrlen.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief mbrlen() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const char *ch;
+  mbstate_t *state;
+  size_t si;
+
+  ch = (void *)0;
+  si = 0;
+  state = NULL;
+  return mbrlen(ch, si, state);
+}
Index: testsuites/psxtests/psxhdrs/wchar/mbrtowc.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/mbrtowc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/mbrtowc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief mbrtowc() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const char *ch;
+  mbstate_t state;
+  size_t si;
+
+  ch = (void *)0;
+  wc = 0;
+  si = 0;
+  return mbrtowc(wc, ch, si, &state);
+}
Index: testsuites/psxtests/psxhdrs/wchar/mbsinit.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/mbsinit.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/mbsinit.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,35 @@
+/**
+ *  @file
+ *  @brief mbsinit() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const mbstate_t state;
+
+  return mbsinit(&state);
+}
Index: testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,42 @@
+/**
+ *  @file
+ *  @brief mbsnrtowcs() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const char* *ch;
+  mbstate_t state;
+  size_t s0, s1;
+
+  wc = 0;
+  ch = 0;
+  s0 = 0;
+  s1 = 0;
+  return mbsnrtowcs(wc, ch, s0, s1, &state);
+}
Index: testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief mbsrtowcs() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const char* *ch;
+  mbstate_t state;
+  size_t s0;
+
+  wc = 0;
+  ch = 0;
+  s0 = 0;
+  return mbsrtowcs(wc, ch, s0, &state);
+}
Index: testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,39 @@
+/**
+ *  @file
+ *  @brief open_wmemstream() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t** wc;
+
+  wc = 0;
+  if(open_wmemstream(wc, 0)){
+    return 1;
+  }
+  return 0;
+}
Index: testsuites/psxtests/psxhdrs/wchar/putwc.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/putwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/putwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief putwc() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t wc;
+  FILE *file;
+
+  wc = L'\x3b1';
+  file = (void *)0;
+  return putwc(wc, file);
+}
Index: testsuites/psxtests/psxhdrs/wchar/putwchar.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/putwchar.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/putwchar.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief putwchar() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t wc;
+
+  wc = L'\x3b1';
+  return putwchar(wc);
+}
Index: testsuites/psxtests/psxhdrs/wchar/swprintf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/swprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/swprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief swprintf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const wchar_t *ch;
+  size_t s0;
+
+  wc = 0;
+  ch = 0;
+  s0 = 0;
+  return swprintf(wc, s0, ch);
+}
Index: testsuites/psxtests/psxhdrs/wchar/swscanf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/swscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/swscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief swscanf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  const wchar_t *ch;
+
+  wc = 0;
+  ch = 0;
+  return swscanf(wc, ch);
+}
Index: testsuites/psxtests/psxhdrs/wchar/towlower.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/towlower.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/towlower.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief towlower() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wctype.h> 
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return towlower(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/towupper.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/towupper.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/towupper.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,41 @@
+/**
+ *  @file
+ *  @brief towupper() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wctype.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return towupper(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/ungetwc.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/ungetwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/ungetwc.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief ungetwc() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+  FILE *file;
+
+  wi = 0;
+  file = (void *)0;
+  return ungetwc(wi, file);
+}
Index: testsuites/psxtests/psxhdrs/wchar/vfwprintf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/vfwprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/vfwprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,45 @@
+/**
+ *  @file
+ *  @brief vfwprintf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+  FILE *file;
+  const wchar_t *wc;
+  va_list va;
+
+  wc = 0;
+  file = (void *)0;
+  va_start(va, fmt);
+  return vfwprintf(file, wc, va);
+}
Index: testsuites/psxtests/psxhdrs/wchar/vfwscanf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/vfwscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/vfwscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,45 @@
+/**
+ *  @file
+ *  @brief vfwscanf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+  FILE *file;
+  const wchar_t *wc;
+  va_list va;
+
+  wc = 0;
+  file = (void *)0;
+  va_start(va, fmt);
+  return vfwscanf(file, wc, va);
+}
Index: testsuites/psxtests/psxhdrs/wchar/vswprintf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/vswprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/vswprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,47 @@
+/**
+ *  @file
+ *  @brief vswprintf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+  wchar_t *wc;
+  const wchar_t *wc1;
+  size_t si;
+  va_list va;
+
+  wc = 0;
+  wc1 = 0;
+  si = 0;
+  va_start(va, fmt);
+  return vswprintf(wc, si, wc1, va);
+}
Index: testsuites/psxtests/psxhdrs/wchar/vswscanf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/vswscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/vswscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,45 @@
+/**
+ *  @file
+ *  @brief vswscanf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+  const wchar_t *wc;
+  const wchar_t *wc1;
+  va_list va;
+
+  wc = 0;
+  wc1 = 0;
+  va_start(va, fmt);
+  return vswscanf(wc, wc1, va);
+}
Index: testsuites/psxtests/psxhdrs/wchar/vwprintf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/vwprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/vwprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,43 @@
+/**
+ *  @file
+ *  @brief vwprintf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+  const wchar_t *wc;
+  va_list va;
+
+  wc = 0;
+  va_start(va, fmt);
+  return vwprintf(wc, va);
+}
Index: testsuites/psxtests/psxhdrs/wchar/vwscanf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/vwscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/vwscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,43 @@
+/**
+ *  @file
+ *  @brief vwscanf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/* 
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed 
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+  const wchar_t *wc;
+  va_list va;
+
+  wc = 0;
+  va_start(va, fmt);
+  return vwscanf(wc, va);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcpcpy.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcpcpy.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcpcpy.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcpcpy() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const wchar_t *wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return *wcpcpy(wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcpncpy.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcpncpy.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcpncpy.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief wcpncpy() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const wchar_t *wc1;
+  size_t si;
+
+  wc = 0;
+  wc1 = 0;
+  si = 0;
+  return *wcpncpy(wc, wc1, si);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcrtomb.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcrtomb.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcrtomb.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief wcrtomb() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t wc;
+  char *ch;
+  mbstate_t *state;
+
+  wc = 0;
+  ch = 0;
+  state = (void *)0;
+  return wcrtomb(ch, wc, state);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcscasecmp() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  const wchar_t *wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return wcscasecmp(wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief wcscasecmp_l() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  const wchar_t *wc1;
+  locale_t locale;
+
+  wc = 0;
+  wc1 = 0;
+  locale = (locale_t)0;
+  return wcscasecmp_l(wc, wc1, locale);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcscat.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcscat.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcscat.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcscat() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const wchar_t *wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return *wcscat(wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcschr.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcschr.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcschr.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wcschr() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  wchar_t wc1 = 0;
+
+  return *wcschr(&wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcscmp.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcscmp.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcscmp.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wcscmp() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  const wchar_t wc1 = 0;
+
+  return wcscmp(&wc, &wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcscoll.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcscoll.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcscoll.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wcscoll() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  const wchar_t wc1 = 0;
+
+  return wcscoll(&wc, &wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcscoll_l() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  const wchar_t wc1 = 0;
+  locale_t locale;
+
+  locale = (locale_t)0;
+  return wcscoll_l(&wc, &wc1, locale);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcscpy.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcscpy.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcscpy.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcscpy() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const wchar_t *wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return *wcscpy(wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcscspn.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcscspn.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcscspn.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wcscpyn() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  const wchar_t wc1 = 0;
+
+  return wcscspn(&wc, &wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcsdup.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcsdup.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcsdup.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,35 @@
+/**
+ *  @file
+ *  @brief wcsdup() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+
+  return *wcsdup(&wc);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcsnlen.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcsnlen.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcsnlen.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief wcsnlen() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  size_t si;
+
+  si = 0;
+  return wcsnlen(&wc, si);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,44 @@
+/**
+ *  @file
+ *  @brief wcsnrtombs() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  char *ch;
+  const wchar_t **wc;
+  size_t si0;
+  size_t si1;
+  mbstate_t *state;
+
+  ch = 0;
+  wc = 0;
+  si0 = 0;
+  si1 = 0;
+  state = 0;
+  return wcsnrtombs(ch, wc, si0, si1, state);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcspbrk.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcspbrk.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcspbrk.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wcspbrk() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  const wchar_t wc1 = 0;
+
+  return *wcspbrk(&wc, &wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcsrchr.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcsrchr.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcsrchr.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief wcsrchr() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  wchar_t wc1;
+
+  wc1 = 0;
+  return *wcsrchr(&wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,42 @@
+/**
+ *  @file
+ *  @brief wcsrtombs() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  char *ch;
+  const wchar_t **wc;
+  size_t si;
+  mbstate_t *state;
+
+  ch = 0;
+  wc = 0;
+  si = 0;
+  state = 0;
+  return wcsrtombs(ch, wc, si, state);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcsspn.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcsspn.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcsspn.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wcsspn() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  const wchar_t wc1 = 0;
+
+  return wcsspn(&wc, &wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcsstr.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcsstr.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcsstr.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcsstr() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  const wchar_t *wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return *wcsstr(wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcstod.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcstod.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcstod.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcstod() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  wchar_t* *wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return wcstod(wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcstof.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcstof.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcstof.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcstof() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  wchar_t **wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return wcstof(wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcstok.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcstok.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcstok.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief wcstok() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const wchar_t *wc1;
+  wchar_t **wc2;
+
+  wc = 0;
+  wc1 = 0;
+  wc2 = 0;
+  return *wcstok(wc, wc1, wc2);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcstol.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcstol.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcstol.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcstol() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  wchar_t **wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return wcstol(wc, wc1, 0);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcstold.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcstold.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcstold.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcstold() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  wchar_t **wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return wcstold(wc, wc1);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcstoll.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcstoll.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcstoll.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcstoll() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  wchar_t **wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return wcstoll(wc, wc1, 0);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcstoul.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcstoul.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcstoul.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcstoul() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  wchar_t **wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return wcstoul(wc, wc1, 0);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcstoull.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcstoull.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcstoull.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcstoull() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+  wchar_t **wc1;
+
+  wc = 0;
+  wc1 = 0;
+  return wcstoull(wc, wc1, 0);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcswidth.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcswidth.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcswidth.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wcswidth() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define _XOPEN_SOURCE
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  size_t si;
+
+  si = 0;
+  return wcswidth(&wc, si);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief wcsxfrm() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const wchar_t *wc1;
+  size_t si;
+
+  wc = 0;
+  wc1 = 0;
+  si = 0;
+  return wcsxfrm(wc, wc1, si);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,42 @@
+/**
+ *  @file
+ *  @brief wcsxfrm_l() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const wchar_t *wc1;
+  size_t si;
+  locale_t locale;
+
+  wc = 0;
+  wc1 = 0;
+  si = 0;
+  locale = (locale_t)0;
+  return wcsxfrm_l(wc, wc1, si, locale);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wctob.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wctob.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wctob.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wctob() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wint_t wi;
+
+  wi = 0;
+  return wctob(wi);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wctype.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wctype.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wctype.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wctype() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+  const char ch = 0;
+
+  return wctype(&ch);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wcwidth.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wcwidth.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wcwidth.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief wcwidth() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define _XOPEN_SOURCE
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t wc;
+
+  wc = 0;
+  return wcwidth(wc);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wmemchr.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wmemchr.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wmemchr.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,39 @@
+/**
+ *  @file
+ *  @brief wmemchr() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  wchar_t wc1;
+  size_t si;
+
+  wc1 = 0;
+  si = 0;
+  return *wmemchr(&wc, wc1, si);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wmemcmp.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wmemcmp.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wmemcmp.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief wmemcmp() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t wc = 0;
+  const wchar_t wc1 = 0;
+  size_t si;
+
+  si = 0;
+  return wmemcmp(&wc, &wc1, si);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wmemcpy.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wmemcpy.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wmemcpy.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,40 @@
+/**
+ *  @file
+ *  @brief wmemcpy() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t *wc;
+  const wchar_t *wc1;
+  size_t si;
+
+  wc = 0;
+  wc1 = 0;
+  si = 0;
+  return *wmemcpy(wc, wc1, si);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wmemmove.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wmemmove.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wmemmove.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,39 @@
+/**
+ *  @file
+ *  @brief wmemmove() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t wc;
+  const wchar_t wc1 = 0;
+  size_t si;
+
+  wc = 0;
+  si = 0;
+  return *wmemmove(&wc, &wc1, si);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wmemset.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wmemset.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wmemset.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,39 @@
+/**
+ *  @file
+ *  @brief wmemset() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  wchar_t wc, wc1;
+  size_t si;
+
+  wc = 0;
+  wc1 = 0;
+  si = 0;
+  return *wmemset(&wc, wc1, si);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wprintf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wprintf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wprintf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+
+  wc = 0;
+  return wprintf(wc);
+}
Index: testsuites/psxtests/psxhdrs/wchar/wscanf.c
===================================================================
--- testsuites/psxtests/psxhdrs/wchar/wscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
+++ testsuites/psxtests/psxhdrs/wchar/wscanf.c	(revision 8e06affb9fcdb544c42706417adbcb2d4b8a9f59)
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief wscanf() API Conformance Test
+ */
+
+/*
+ *  COPYRIGHT (c) 2018.
+ *  Zenon (zehata).
+ *
+ *  Permission to use, copy, modify, and/or distribute this software
+ *  for any purpose with or without fee is hereby granted.
+ * 
+ *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+  const wchar_t *wc;
+
+  wc = 0;
+  return wscanf(wc);
+}
