TSEARCH(3POSIX)

πŸ’– TSEARCH(3POSIX) β€” the POSIX Programmer's Manual, bestie edition πŸŽ€

okay so this one lives in the POSIX Programmer's Manual, and it's filed under TSEARCH(3POSIX), dated 2017, from the IEEE/The Open Group. periodt. let's get into it πŸ¦‹


✨ PROLOG ✨

so like, heads up first: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ β€” so pls go consult the corresponding Linux manual page for the deets on Linux behavior 😭 β€” or honestly, the interface might not even be implemented on Linux at all. vibe check: don't assume, go check. πŸ’…


🌸 NAME 🌸

tsearch β€” search a binary search tree 🌳✨


πŸ’œ SYNOPSIS πŸ’œ

#include <search.h>

void *tsearch(const void *key, void **rootp,
    int (*compar)(const void *, const void *));

no cap, that's the whole signature. three args, one include, iconic. πŸ‘‘


🫢 DESCRIPTION 🫢

bestie, here's the thing β€” this page is literally just gonna point you at tdelete(). that's it. that's the description. refer to tdelete(), fr fr. 😌

lowkey obsessed with how the entire DESCRIPTION section is one sentence. main character energy, honestly.

okay now the legal tea, and we're keeping every drop β˜•πŸ’–

portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. πŸŽ€

and listen β€” in the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. like, they're the final boss, no appeals. 🫑

the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format πŸ™ˆ β€” to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


⭐ pro tip from me to you: this whole page is short and sweet and that is its whole brand. slay.

🌈 okay that's the whole page bestie, we're done!! this little bundle of joy comes to you from IEEE/The Open Group, dated 2017, under the title TSEARCH(3POSIX) β€” take care of her, she's iconic πŸ’…βœ¨πŸ’–