From b1e164f360cf3dfd705bff3eb56bc4a68322269c Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 8 Aug 2023 19:43:23 +0200 Subject: [PATCH] libc. Add basic wchar.h --- libc/include/wchar.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/libc/include/wchar.h b/libc/include/wchar.h index e69de29b..424cf718 100644 --- a/libc/include/wchar.h +++ b/libc/include/wchar.h @@ -0,0 +1,25 @@ +/* wchar.h: Wide-character string manipulation functions. */ + +#ifndef _WCHAR_H +#define _WCHAR_H + +typedef long int wint_t; + +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + + /* Calculate the size of a null-terminated wide character string. */ + size_t wcslen(const wchar_t* str); + + /* Compare two null-terminated wide character strings. */ + int wcscmp(const wchar_t* a, const wchar_t* b); + +#ifdef __cplusplus +} +#endif + +#endif