TWALK(3P)

πŸ’– TWALK(3P) πŸ’–

okay bestie, welcome to TWALK(3P) β€” straight out of the POSIX Programmer's Manual. this is the little corner of the man pages where we talk about walking a binary search tree, and honestly? iconic behavior. 🌳✨


🌸 PROLOG 🌸

so like, before we even get into it β€” this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ, so if you're on Linux you gotta consult the corresponding Linux manual page for the deets on Linux behavior. OR β€” and hear me out β€” the interface might just not be implemented on Linux at all. not to be dramatic but that's a real possibility. πŸ’€


✨ NAME ✨

twalk β€” traverse a binary search tree πŸ¦‹

like. that's the whole job. she walks the tree. main character energy fr.


πŸŽ€ SYNOPSIS πŸŽ€

#include <search.h>

void twalk(const void *root,
    void (*action)(const void *, VISIT, int ));

yes the spacing is exactly like that, don't come for me, I don't make the rules. πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

bestie. the entire description is: Refer to tdelete().

that's it. that's the vibe. she's giving mysterious, she's giving "go read your other man page", she's giving lowkey iconic for saying so little. 😭 so yeah β€” go check out tdelete(). 🫢


okay here's the part where we give credit where credit is due, no cap. ✨

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. 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. 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 .

fr fr if you spot a typo, it's probably a glow-up gone wrong during the file conversion, not a personal attack. report it, bestie. πŸ™ˆ

🌸 and that's the whole page!! this was brought to you by IEEE/The Open Group, dated 2017, and it lives on as TWALK(3P) forever and ever. slay, stay hydrated, go traverse something. πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from