[libc-commits] [libc] [libc] Add iswctype and wctype (PR #191178)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Apr 10 10:57:31 PDT 2026


================
@@ -0,0 +1,14 @@
+//===-- Definition of wctype_t types --------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_TYPES_WCTYPE_T_H
+#define LLVM_LIBC_TYPES_WCTYPE_T_H
+
+typedef unsigned short wctype_t;
----------------
michaelrj-google wrote:

I think you should leave this as int. `short` may be too small.

https://github.com/llvm/llvm-project/pull/191178


More information about the libc-commits mailing list