X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fwchar.h;h=59955b3d80b7a3cb5fa0d6d72123d8d9ecc4cf50;hb=847a34bc4d47592ba53cf0b5b860598a88bc8eca;hp=1b4142b24dd821f3a6e07e43ce0934cda42df21d;hpb=3f035390c831709593428e88bb1c640604434d60;p=pdclib.old diff --git a/includes/wchar.h b/includes/wchar.h index 1b4142b..59955b3 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 ) _PDCLIB_nothrow; +wchar_t *wcsrchr( const wchar_t * haystack, wchar_t needle ) _PDCLIB_nothrow; +size_t wcslen( const wchar_t * string) _PDCLIB_nothrow; +wchar_t *wcscpy( wchar_t * _PDCLIB_restrict dest, + const wchar_t * _PDCLIB_restrict src) _PDCLIB_nothrow; + +_PDCLIB_END_EXTERN_C +#endif