aboutsummaryrefslogtreecommitdiff
path: root/libc/spec
diff options
context:
space:
mode:
authorCaslyn Tonelli <caslyn@google.com>2023-04-03 11:04:48 -0700
committerHaowei Wu <haowei@google.com>2023-04-03 11:08:28 -0700
commitbc2b1614081c23b3c42917538fa54d67917c998f (patch)
treebdecd6644f0af8831f8cab0954100b20605cb983 /libc/spec
parentd9163b290c9bf2cec71c24b6463cb5b951673e21 (diff)
downloadllvm-bc2b1614081c23b3c42917538fa54d67917c998f.zip
llvm-bc2b1614081c23b3c42917538fa54d67917c998f.tar.gz
llvm-bc2b1614081c23b3c42917538fa54d67917c998f.tar.bz2
[libc] Add strchrnul implementation
Introduce strchrnul implementation and unit tests. Submitting on behalf of Caslyn@ Differential Revision: https://reviews.llvm.org/D147346
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 f3311e3..52fc061 100644
--- a/libc/spec/gnu_ext.td
+++ b/libc/spec/gnu_ext.td
@@ -73,6 +73,11 @@ def GnuExtensions : StandardSpec<"GNUExtensions"> {
RetValSpec<CharPtr>,
[ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>]
>,
+ FunctionSpec<
+ "strchrnul",
+ RetValSpec<CharPtr>,
+ [ArgSpec<ConstCharPtr>, ArgSpec<IntType>]
+ >,
]
>;