summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/search.h
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2021-09-27 00:50:51 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-10-15 21:50:19 -0700
commit7448626bae1c0180454130077b280b873a7cc752 (patch)
treee4bec7a7d7f38870c4dc7425386e22ab24291d38 /Userland/Libraries/LibC/search.h
parentd0451813752817a471b9d34b1d98729ce9ec3132 (diff)
downloadserenity-7448626bae1c0180454130077b280b873a7cc752.zip
LibC: Implement tfind and tsearch
Diffstat (limited to 'Userland/Libraries/LibC/search.h')
-rw-r--r--Userland/Libraries/LibC/search.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/search.h b/Userland/Libraries/LibC/search.h
new file mode 100644
index 0000000000..a9f4fd96e2
--- /dev/null
+++ b/Userland/Libraries/LibC/search.h
@@ -0,0 +1,14 @@
+/*
+ * Copyright (c) 2021, the SerenityOS developers.
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+__BEGIN_DECLS
+
+void* tsearch(const void*, void**, int (*)(const void*, const void*));
+void* tfind(const void*, void* const*, int (*)(const void*, const void*));
+
+__END_DECLS