summaryrefslogtreecommitdiff
path: root/libc/spec
diff options
context:
space:
mode:
authorAlex Brachet <abrachet@google.com>2023-01-25 17:58:13 +0000
committerAlex Brachet <abrachet@google.com>2023-01-25 17:58:13 +0000
commit741021de32360cade7aca1e9f7368966a8a3d26a (patch)
tree32cc1691c567e9d630b174a5027ea644714e2143 /libc/spec
parent7092dae032290dd4cdc99d7573e02687f2ab0c76 (diff)
downloadllvm-741021de32360cade7aca1e9f7368966a8a3d26a.tar.gz
[libc] Implement strcasestr
Differential Revision: https://reviews.llvm.org/D142518
Diffstat (limited to 'libc/spec')
-rw-r--r--libc/spec/gnu_ext.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/spec/gnu_ext.td b/libc/spec/gnu_ext.td
index 239790bb9bdc..f3311e3a782d 100644
--- a/libc/spec/gnu_ext.td
+++ b/libc/spec/gnu_ext.td
@@ -68,6 +68,11 @@ def GnuExtensions : StandardSpec<"GNUExtensions"> {
RetValSpec<CharPtr>,
[ArgSpec<IntType>, ArgSpec<CharPtr>, ArgSpec<SizeTType>]
>,
+ FunctionSpec<
+ "strcasestr",
+ RetValSpec<CharPtr>,
+ [ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>]
+ >,
]
>;