ladybird/Userland/Libraries/LibC/search.h

26 lines
523 B
C
Raw Normal View History

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