X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fwchar.h;fp=includes%2Fwchar.h;h=eab2984b0e297539c88f1c87d59a1664339d11b0;hb=10f020f1a39804bbef8cd1cf35ef7c9a8e75c7d6;hp=0000000000000000000000000000000000000000;hpb=f7a440b9c7bb0c686dc2368c4ff53b20bf6371f8;p=pdclib.old diff --git a/includes/wchar.h b/includes/wchar.h new file mode 100644 index 0000000..eab2984 --- /dev/null +++ b/includes/wchar.h @@ -0,0 +1,35 @@ +/* 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