X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fwchar.h;h=eab2984b0e297539c88f1c87d59a1664339d11b0;hb=10f020f1a39804bbef8cd1cf35ef7c9a8e75c7d6;hp=1b4142b24dd821f3a6e07e43ce0934cda42df21d;hpb=3f035390c831709593428e88bb1c640604434d60;p=pdclib.old diff --git a/includes/wchar.h b/includes/wchar.h index 1b4142b..eab2984 100644 --- a/includes/wchar.h +++ b/includes/wchar.h @@ -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. + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + + +#ifndef _PDCLIB_WCHAR_H +#define _PDCLIB_WCHAR_H +#include <_PDCLIB_int.h> +_PDCLIB_BEGIN_EXTERN_C +/* This is VASTLY incomplete. Functions being implemented as required by other + portions of the library + */ + +#ifndef _PDCLIB_SIZE_T_DEFINED +#define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED +typedef _PDCLIB_size_t size_t; +#endif + +#ifndef __cplusplus +#ifndef _PDCLIB_WCHAR_T_DEFINED +#define _PDCLIB_WCHAR_T_DEFINED _PDCLIB_WCHAR_T_DEFINED +typedef _PDCLIB_wchar_t wchar_t; +#endif +#endif + +wchar_t *wcschr( const wchar_t * haystack, wchar_t needle ); +wchar_t *wcsrchr( const wchar_t * haystack, wchar_t needle ); +size_t wcslen( const wchar_t * string); +wchar_t *wcscpy( wchar_t * _PDCLIB_restrict dest, + const wchar_t * _PDCLIB_restrict src); + +_PDCLIB_END_EXTERN_C +#endif