]> pd.if.org Git - pdclib.old/blobdiff - includes/wchar.h
* Test cleanups: surround the code for all functions by #ifndef REGTEST
[pdclib.old] / includes / wchar.h
index 1b4142b24dd821f3a6e07e43ce0934cda42df21d..eab2984b0e297539c88f1c87d59a1664339d11b0 100644 (file)
@@ -1,15 +1,35 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
-// TODO
-// ----------------------------------------------------------------------------
-
-#ifndef __WCHAR_H
-#define __WCHAR_H __WCHAR_H
-
-// TODO
-
-#endif // __WCHAR_H
+/* 7. <wchar.h>\r
+\r
+   This file is part of the Public Domain C Library (PDCLib).\r
+   Permission is granted to use, modify, and / or redistribute at will.\r
+*/\r
+\r
+\r
+#ifndef _PDCLIB_WCHAR_H\r
+#define _PDCLIB_WCHAR_H\r
+#include <_PDCLIB_int.h>\r
+_PDCLIB_BEGIN_EXTERN_C\r
+/* This is VASTLY incomplete. Functions being implemented as required by other\r
+   portions of the library\r
+ */\r
+\r
+#ifndef _PDCLIB_SIZE_T_DEFINED\r
+#define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED\r
+typedef _PDCLIB_size_t size_t;\r
+#endif\r
+\r
+#ifndef __cplusplus\r
+#ifndef _PDCLIB_WCHAR_T_DEFINED\r
+#define _PDCLIB_WCHAR_T_DEFINED _PDCLIB_WCHAR_T_DEFINED\r
+typedef _PDCLIB_wchar_t   wchar_t;\r
+#endif\r
+#endif\r
+\r
+wchar_t *wcschr( const wchar_t * haystack, wchar_t needle );\r
+wchar_t *wcsrchr( const wchar_t * haystack, wchar_t needle );\r
+size_t   wcslen( const wchar_t * string);\r
+wchar_t *wcscpy( wchar_t * _PDCLIB_restrict dest, \r
+                 const wchar_t * _PDCLIB_restrict src);\r
+\r
+_PDCLIB_END_EXTERN_C\r
+#endif\r