ladybird/Userland/Libraries/LibC/search.h

26 lines
523 B
C
Raw Normal View History

2021-09-27 00:50:51 +02:00
/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
2021-10-17 14:10:39 +02:00
#include <sys/cdefs.h>
2021-09-27 00:50:51 +02:00
__BEGIN_DECLS
2021-10-14 20:46:26 +02:00
typedef enum {
preorder,
postorder,
endorder,
leaf,
} VISIT;
2022-04-01 20:58:27 +03:00
void* tsearch(void const*, void**, int (*)(void const*, void const*));
void* tfind(void const*, void* const*, int (*)(void const*, void const*));
void* tdelete(void const*, void**, int (*)(void const*, void const*));
void twalk(void const*, void (*)(void const*, VISIT, int));
2021-09-27 00:50:51 +02:00
__END_DECLS