[rtems commit] psxhdrs: Added POSIX Compliance Test for wchar.h (GCI 2018)

Joel Sherrill joel at rtems.org
Sat Dec 8 17:28:11 UTC 2018


Module:    rtems
Branch:    master
Commit:    8e06affb9fcdb544c42706417adbcb2d4b8a9f59
Changeset: http://git.rtems.org/rtems/commit/?id=8e06affb9fcdb544c42706417adbcb2d4b8a9f59

Author:    zehata <zenon.hans.taneka at dhs.sg>
Date:      Sat Dec  8 11:26:43 2018 -0600

psxhdrs: Added POSIX Compliance Test for wchar.h (GCI 2018)

---

 testsuites/psxtests/Makefile.am                    | 84 +++++++++++++++++++++-
 testsuites/psxtests/psxhdrs/wchar/btowc.c          | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/fgetwc.c         | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/fgetws.c         | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/fputwc.c         | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/fputws.c         | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/fwide.c          | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/fwprintf.c       | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/fwscanf.c        | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/getwc.c          | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/getwchar.c       | 33 +++++++++
 testsuites/psxtests/psxhdrs/wchar/iswalnum.c       | 41 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswalpha.c       | 41 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswcntrl.c       | 41 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswctype.c       | 43 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswdigit.c       | 41 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswgraph.c       | 41 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswlower.c       | 41 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswprint.c       | 37 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswpunct.c       | 37 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswspace.c       | 37 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswupper.c       | 37 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/iswxdigit.c      | 37 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/mbrlen.c         | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/mbrtowc.c        | 41 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/mbsinit.c        | 35 +++++++++
 testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c     | 42 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c      | 41 +++++++++++
 .../psxtests/psxhdrs/wchar/open_wmemstream.c       | 39 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/putwc.c          | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/putwchar.c       | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/swprintf.c       | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/swscanf.c        | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/towlower.c       | 41 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/towupper.c       | 41 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/ungetwc.c        | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/vfwprintf.c      | 45 ++++++++++++
 testsuites/psxtests/psxhdrs/wchar/vfwscanf.c       | 45 ++++++++++++
 testsuites/psxtests/psxhdrs/wchar/vswprintf.c      | 47 ++++++++++++
 testsuites/psxtests/psxhdrs/wchar/vswscanf.c       | 45 ++++++++++++
 testsuites/psxtests/psxhdrs/wchar/vwprintf.c       | 43 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/vwscanf.c        | 43 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcpcpy.c         | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcpncpy.c        | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcrtomb.c        | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c     | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c   | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcscat.c         | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcschr.c         | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcscmp.c         | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcscoll.c        | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c      | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcscpy.c         | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcscspn.c        | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcsdup.c         | 35 +++++++++
 testsuites/psxtests/psxhdrs/wchar/wcsnlen.c        | 37 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c     | 44 ++++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcspbrk.c        | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcsrchr.c        | 37 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c      | 42 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcsspn.c         | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcsstr.c         | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcstod.c         | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcstof.c         | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcstok.c         | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcstol.c         | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcstold.c        | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcstoll.c        | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcstoul.c        | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcstoull.c       | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcswidth.c       | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c        | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c      | 42 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/wctob.c          | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wctype.c         | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wcwidth.c        | 37 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wmemchr.c        | 39 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wmemcmp.c        | 38 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wmemcpy.c        | 40 +++++++++++
 testsuites/psxtests/psxhdrs/wchar/wmemmove.c       | 39 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wmemset.c        | 39 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wprintf.c        | 36 ++++++++++
 testsuites/psxtests/psxhdrs/wchar/wscanf.c         | 36 ++++++++++
 83 files changed, 3273 insertions(+), 1 deletion(-)

diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am
index e7727f8..bfa938d 100644
--- a/testsuites/psxtests/Makefile.am
+++ b/testsuites/psxtests/Makefile.am
@@ -1607,7 +1607,89 @@ lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \
 	psxhdrs/arpa/inet/inet_addr.c \
 	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
 
 
 ## Not supported by RTEMS, but POSIX API Compliance tests exist.
diff --git a/testsuites/psxtests/psxhdrs/wchar/btowc.c b/testsuites/psxtests/psxhdrs/wchar/btowc.c
new file mode 100644
index 0000000..346379d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/btowc.c
@@ -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));
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fgetwc.c b/testsuites/psxtests/psxhdrs/wchar/fgetwc.c
new file mode 100644
index 0000000..02f1ff7
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fgetwc.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fgetws.c b/testsuites/psxtests/psxhdrs/wchar/fgetws.c
new file mode 100644
index 0000000..dfb8d48
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fgetws.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fputwc.c b/testsuites/psxtests/psxhdrs/wchar/fputwc.c
new file mode 100644
index 0000000..54c1ebb
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fputwc.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fputws.c b/testsuites/psxtests/psxhdrs/wchar/fputws.c
new file mode 100644
index 0000000..289fb53
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fputws.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fwide.c b/testsuites/psxtests/psxhdrs/wchar/fwide.c
new file mode 100644
index 0000000..041757d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fwide.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fwprintf.c b/testsuites/psxtests/psxhdrs/wchar/fwprintf.c
new file mode 100644
index 0000000..b0e3f8e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fwprintf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fwscanf.c b/testsuites/psxtests/psxhdrs/wchar/fwscanf.c
new file mode 100644
index 0000000..12ab241
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fwscanf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/getwc.c b/testsuites/psxtests/psxhdrs/wchar/getwc.c
new file mode 100644
index 0000000..40f652e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/getwc.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/getwchar.c b/testsuites/psxtests/psxhdrs/wchar/getwchar.c
new file mode 100644
index 0000000..6df6c90
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/getwchar.c
@@ -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();
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswalnum.c b/testsuites/psxtests/psxhdrs/wchar/iswalnum.c
new file mode 100644
index 0000000..1bcc9cc
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswalnum.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswalpha.c b/testsuites/psxtests/psxhdrs/wchar/iswalpha.c
new file mode 100644
index 0000000..0b38be5
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswalpha.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswcntrl.c b/testsuites/psxtests/psxhdrs/wchar/iswcntrl.c
new file mode 100644
index 0000000..72bec9c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswcntrl.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswctype.c b/testsuites/psxtests/psxhdrs/wchar/iswctype.c
new file mode 100644
index 0000000..85c9b89
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswctype.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswdigit.c b/testsuites/psxtests/psxhdrs/wchar/iswdigit.c
new file mode 100644
index 0000000..41f5003
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswdigit.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswgraph.c b/testsuites/psxtests/psxhdrs/wchar/iswgraph.c
new file mode 100644
index 0000000..8c21f13
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswgraph.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswlower.c b/testsuites/psxtests/psxhdrs/wchar/iswlower.c
new file mode 100644
index 0000000..396bd2c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswlower.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswprint.c b/testsuites/psxtests/psxhdrs/wchar/iswprint.c
new file mode 100644
index 0000000..2c084cb
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswprint.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswpunct.c b/testsuites/psxtests/psxhdrs/wchar/iswpunct.c
new file mode 100644
index 0000000..8164055
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswpunct.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswspace.c b/testsuites/psxtests/psxhdrs/wchar/iswspace.c
new file mode 100644
index 0000000..ced5ff9
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswspace.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswupper.c b/testsuites/psxtests/psxhdrs/wchar/iswupper.c
new file mode 100644
index 0000000..7bb8be5
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswupper.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswxdigit.c b/testsuites/psxtests/psxhdrs/wchar/iswxdigit.c
new file mode 100644
index 0000000..5369224
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswxdigit.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbrlen.c b/testsuites/psxtests/psxhdrs/wchar/mbrlen.c
new file mode 100644
index 0000000..960f500
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbrlen.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbrtowc.c b/testsuites/psxtests/psxhdrs/wchar/mbrtowc.c
new file mode 100644
index 0000000..5460f10
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbrtowc.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbsinit.c b/testsuites/psxtests/psxhdrs/wchar/mbsinit.c
new file mode 100644
index 0000000..f476d58
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbsinit.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c b/testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c
new file mode 100644
index 0000000..df932be
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c b/testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c
new file mode 100644
index 0000000..0cf9be7
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c b/testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c
new file mode 100644
index 0000000..a2431e0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c
@@ -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;
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/putwc.c b/testsuites/psxtests/psxhdrs/wchar/putwc.c
new file mode 100644
index 0000000..5dc7676
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/putwc.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/putwchar.c b/testsuites/psxtests/psxhdrs/wchar/putwchar.c
new file mode 100644
index 0000000..8003eea
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/putwchar.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/swprintf.c b/testsuites/psxtests/psxhdrs/wchar/swprintf.c
new file mode 100644
index 0000000..19effbb
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/swprintf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/swscanf.c b/testsuites/psxtests/psxhdrs/wchar/swscanf.c
new file mode 100644
index 0000000..4dc5dae
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/swscanf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/towlower.c b/testsuites/psxtests/psxhdrs/wchar/towlower.c
new file mode 100644
index 0000000..f0af09e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/towlower.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/towupper.c b/testsuites/psxtests/psxhdrs/wchar/towupper.c
new file mode 100644
index 0000000..11067b5
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/towupper.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/ungetwc.c b/testsuites/psxtests/psxhdrs/wchar/ungetwc.c
new file mode 100644
index 0000000..a3a6708
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/ungetwc.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vfwprintf.c b/testsuites/psxtests/psxhdrs/wchar/vfwprintf.c
new file mode 100644
index 0000000..c48e23c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vfwprintf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vfwscanf.c b/testsuites/psxtests/psxhdrs/wchar/vfwscanf.c
new file mode 100644
index 0000000..4ed0428
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vfwscanf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vswprintf.c b/testsuites/psxtests/psxhdrs/wchar/vswprintf.c
new file mode 100644
index 0000000..b848402
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vswprintf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vswscanf.c b/testsuites/psxtests/psxhdrs/wchar/vswscanf.c
new file mode 100644
index 0000000..3e25d4f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vswscanf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vwprintf.c b/testsuites/psxtests/psxhdrs/wchar/vwprintf.c
new file mode 100644
index 0000000..c947e5f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vwprintf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vwscanf.c b/testsuites/psxtests/psxhdrs/wchar/vwscanf.c
new file mode 100644
index 0000000..8fd66f9
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vwscanf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcpcpy.c b/testsuites/psxtests/psxhdrs/wchar/wcpcpy.c
new file mode 100644
index 0000000..68de693
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcpcpy.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcpncpy.c b/testsuites/psxtests/psxhdrs/wchar/wcpncpy.c
new file mode 100644
index 0000000..dae664c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcpncpy.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcrtomb.c b/testsuites/psxtests/psxhdrs/wchar/wcrtomb.c
new file mode 100644
index 0000000..0b74783
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcrtomb.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c b/testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c
new file mode 100644
index 0000000..4862356
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c b/testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c
new file mode 100644
index 0000000..68cd7d4
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscat.c b/testsuites/psxtests/psxhdrs/wchar/wcscat.c
new file mode 100644
index 0000000..b451a3e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscat.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcschr.c b/testsuites/psxtests/psxhdrs/wchar/wcschr.c
new file mode 100644
index 0000000..cf6c0ba
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcschr.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscmp.c b/testsuites/psxtests/psxhdrs/wchar/wcscmp.c
new file mode 100644
index 0000000..d53abf4
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscmp.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscoll.c b/testsuites/psxtests/psxhdrs/wchar/wcscoll.c
new file mode 100644
index 0000000..000e150
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscoll.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c b/testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c
new file mode 100644
index 0000000..0ae54d8
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscpy.c b/testsuites/psxtests/psxhdrs/wchar/wcscpy.c
new file mode 100644
index 0000000..02c1d4e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscpy.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscspn.c b/testsuites/psxtests/psxhdrs/wchar/wcscspn.c
new file mode 100644
index 0000000..98cf9e4
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscspn.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsdup.c b/testsuites/psxtests/psxhdrs/wchar/wcsdup.c
new file mode 100644
index 0000000..ed5951e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsdup.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsnlen.c b/testsuites/psxtests/psxhdrs/wchar/wcsnlen.c
new file mode 100644
index 0000000..189fcf0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsnlen.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c b/testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c
new file mode 100644
index 0000000..fd708e1
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcspbrk.c b/testsuites/psxtests/psxhdrs/wchar/wcspbrk.c
new file mode 100644
index 0000000..30edd5e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcspbrk.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsrchr.c b/testsuites/psxtests/psxhdrs/wchar/wcsrchr.c
new file mode 100644
index 0000000..082230d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsrchr.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c b/testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c
new file mode 100644
index 0000000..f275d66
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsspn.c b/testsuites/psxtests/psxhdrs/wchar/wcsspn.c
new file mode 100644
index 0000000..77aada2
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsspn.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsstr.c b/testsuites/psxtests/psxhdrs/wchar/wcsstr.c
new file mode 100644
index 0000000..d64d3a7
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsstr.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstod.c b/testsuites/psxtests/psxhdrs/wchar/wcstod.c
new file mode 100644
index 0000000..8f20f01
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstod.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstof.c b/testsuites/psxtests/psxhdrs/wchar/wcstof.c
new file mode 100644
index 0000000..43e3a31
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstof.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstok.c b/testsuites/psxtests/psxhdrs/wchar/wcstok.c
new file mode 100644
index 0000000..41c0bf3
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstok.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstol.c b/testsuites/psxtests/psxhdrs/wchar/wcstol.c
new file mode 100644
index 0000000..449d491
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstol.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstold.c b/testsuites/psxtests/psxhdrs/wchar/wcstold.c
new file mode 100644
index 0000000..11523e9
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstold.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstoll.c b/testsuites/psxtests/psxhdrs/wchar/wcstoll.c
new file mode 100644
index 0000000..fbeefae
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstoll.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstoul.c b/testsuites/psxtests/psxhdrs/wchar/wcstoul.c
new file mode 100644
index 0000000..cb0ce94
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstoul.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstoull.c b/testsuites/psxtests/psxhdrs/wchar/wcstoull.c
new file mode 100644
index 0000000..574a512
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstoull.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcswidth.c b/testsuites/psxtests/psxhdrs/wchar/wcswidth.c
new file mode 100644
index 0000000..2e6923e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcswidth.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c b/testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c
new file mode 100644
index 0000000..1099e68
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c b/testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c
new file mode 100644
index 0000000..ea4c45c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wctob.c b/testsuites/psxtests/psxhdrs/wchar/wctob.c
new file mode 100644
index 0000000..0c2be69
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wctob.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wctype.c b/testsuites/psxtests/psxhdrs/wchar/wctype.c
new file mode 100644
index 0000000..c533948
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wctype.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcwidth.c b/testsuites/psxtests/psxhdrs/wchar/wcwidth.c
new file mode 100644
index 0000000..38c6709
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcwidth.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemchr.c b/testsuites/psxtests/psxhdrs/wchar/wmemchr.c
new file mode 100644
index 0000000..5bc3766
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemchr.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemcmp.c b/testsuites/psxtests/psxhdrs/wchar/wmemcmp.c
new file mode 100644
index 0000000..51a8e4c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemcmp.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemcpy.c b/testsuites/psxtests/psxhdrs/wchar/wmemcpy.c
new file mode 100644
index 0000000..3e235fa
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemcpy.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemmove.c b/testsuites/psxtests/psxhdrs/wchar/wmemmove.c
new file mode 100644
index 0000000..57f7d05
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemmove.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemset.c b/testsuites/psxtests/psxhdrs/wchar/wmemset.c
new file mode 100644
index 0000000..27d7685
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemset.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wprintf.c b/testsuites/psxtests/psxhdrs/wchar/wprintf.c
new file mode 100644
index 0000000..0b6046a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wprintf.c
@@ -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);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wscanf.c b/testsuites/psxtests/psxhdrs/wchar/wscanf.c
new file mode 100644
index 0000000..e5b499e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wscanf.c
@@ -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);
+}




More information about the vc mailing list