diff options
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/tsearch.3 | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/man3/tsearch.3 b/man3/tsearch.3 index 769bfe2867..194607c86f 100644 --- a/man3/tsearch.3 +++ b/man3/tsearch.3 @@ -45,7 +45,7 @@ tsearch, tfind, tdelete, twalk, tdestroy \- manage a binary search tree .PP .BI "void twalk_r(const void *" root ", void (*" action ")(const void *" np , .BI " VISIT " which ", void *" closure "), -.BI " void *" closure);" +.BI " void *" closure ); .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include <search.h> @@ -160,11 +160,14 @@ is rather confusing.) .BR twalk_r () is similar to .BR twalk (), -but instead of the leval argument, the +but instead of the +.I depth +argument, the .I closure argument pointer is passed to each invocation of the action callback, -unchanged. This pointer can be used to pass information to and from -to the callback function in a thread-safe fashion, without resorting +unchanged. +This pointer can be used to pass information to and from +the callback function in a thread-safe fashion, without resorting to global variables. .PP .BR tdestroy () @@ -209,7 +212,7 @@ return NULL if was NULL on entry. .SH VERSIONS .BR twalk_r () -is available since glibc 2.30. +is available in glibc since version 2.30. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). |
