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

via libc-commits libc-commits at lists.llvm.org
Thu Jan 23 10:16:49 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Alex Prabhat Bara (alexprabhat99)

<details>
<summary>Changes</summary>

Fixes: #<!-- -->124152 

---
Full diff: https://github.com/llvm/llvm-project/pull/124168.diff


1 Files Affected:

- (modified) libc/include/wchar.yaml (+6) 


``````````diff
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

``````````

</details>


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


More information about the libc-commits mailing list