TWALK(3POSIX)

πŸ¦‹ PROLOG πŸ¦‹

okay bestie, real talk before we even get into it: this manual page is part of the POSIX Programmer's Manual. that's the whole vibe. but here's the tea β€” the Linux implementation of this interface may differ, so if you're on Linux you should go consult the corresponding Linux manual page for the actual deets. and sometimes? the interface just isn't implemented on Linux at all. rude, but true. πŸ’€


🌸 NAME 🌸

twalk β€” traverse a binary search tree

like, you walk the tree. twalk. it's giving on the nose, and honestly? we love a self-explanatory name. πŸ‘‘


✨ SYNOPSIS ✨

#include <search.h>

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

that's it. that's the whole signature. no return value, no drama. 🫢


πŸ’– DESCRIPTION πŸ’–

okay so. the actual description? refer to tdelete(). that's it, that's the whole thing. the POSIX girlies really said "go read the other page bestie, it's all there." iconic minimalism, no notes. πŸ’…


so some of this text is 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 β€” if there's 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, the original is the main character, periodt. the original Standard can be obtained online at http://www.opengroup.org/unix/online.html . 🧚

also any typographical or formatting errors that show up in this page are most likely to have been introduced during the conversion of the source files to man page format (the glow-up from source to manpage was a little rough, ngl 😭). to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


ngl if you made it this far, you're a real one. go traverse that tree. 🌈

and that's a wrap, bestie!! this lil page was brought to you by IEEE/The Open Group, dated 2017, and it lives in the TWALK(3POSIX) house. bye bestie, stay traversing! πŸŒΈπŸ’–βœ¨