ladybird/Userland/Libraries/LibC/search.h
2022-04-01 21:24:45 +01:00

26 lines
523 B
C

/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <sys/cdefs.h>
__BEGIN_DECLS
typedef enum {
preorder,
postorder,
endorder,
leaf,
} VISIT;
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));
__END_DECLS