[libc-commits] [libc] [libc] added btowc to wchar.h generated header (PR #124168)

Alex Prabhat Bara via libc-commits libc-commits at lists.llvm.org
Thu Jan 23 10:15:34 PST 2025


https://github.com/alexprabhat99 created https://github.com/llvm/llvm-project/pull/124168

Fixes: #124152 

>From c5f4b4160059a801d87bfa24d1eeca9f16a226ea Mon Sep 17 00:00:00 2001
From: Alex Prabhat Bara <50404684+alexprabhat99 at users.noreply.github.com>
Date: Thu, 23 Jan 2025 23:44:54 +0530
Subject: [PATCH] [libc] added btowc to wchar.h generated header

---
 libc/include/wchar.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libc/include/wchar.yaml b/libc/include/wchar.yaml
index 27a5926b574554..159237c7b4ff7c 100644
--- a/libc/include/wchar.yaml
+++ b/libc/include/wchar.yaml
@@ -15,3 +15,9 @@ functions:
     return_type: int
     arguments:
       - type: wint_t
+  - name: btowc
+    standards:
+      - stdc
+    return_type: wint_t
+    arguments:
+      - type: int



More information about the libc-commits mailing list