[libc-commits] [libc] [libc][search] implement posix `lfind` function (PR #114692)

via libc-commits libc-commits at lists.llvm.org
Mon Nov 4 13:18:05 PST 2024


================
@@ -1618,6 +1618,17 @@ def POSIX : StandardSpec<"POSIX"> {
                 ArgSpec<VoidPtr>
             ]
         >,
+        FunctionSpec<
+            "lfind",
+            RetValSpec<VoidPtr>,
+            [
+                ArgSpec<VoidPtr>,
+                ArgSpec<VoidPtr>,
+                ArgSpec<SizeTPtr>,
+                ArgSpec<SizeTType>,
+                // TODO: Unsure how to specify int(*compar)(void *, void *)
----------------
duncpro wrote:

Resolved by [e1f3019](https://github.com/llvm/llvm-project/pull/114692/commits/e1f301948492ced96cc5428ebe91e7c18f791d62)

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


More information about the libc-commits mailing list