summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/tsearch.3
diff options
context:
space:
mode:
authoraaron <>2000-04-20 13:50:03 +0000
committeraaron <>2000-04-20 13:50:03 +0000
commita4336f357f9e30dffdfad4909b24bd2e82c096a2 (patch)
treec79a224a41eb2c48668c4b4eda84163d7daadf64 /src/lib/libc/stdlib/tsearch.3
parent92b3e44bedaf5a5f85880565a47206cdbf9bfa2a (diff)
downloadopenbsd-a4336f357f9e30dffdfad4909b24bd2e82c096a2.tar.gz
openbsd-a4336f357f9e30dffdfad4909b24bd2e82c096a2.tar.bz2
openbsd-a4336f357f9e30dffdfad4909b24bd2e82c096a2.zip
Flesh out stdlib function man pages.
Diffstat (limited to 'src/lib/libc/stdlib/tsearch.3')
-rw-r--r--src/lib/libc/stdlib/tsearch.38
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/tsearch.3 b/src/lib/libc/stdlib/tsearch.3
index fa1d34afbb..72048a19fb 100644
--- a/src/lib/libc/stdlib/tsearch.3
+++ b/src/lib/libc/stdlib/tsearch.3
@@ -23,7 +23,7 @@
23.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 23.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\" 25.\"
26.\" $OpenBSD: tsearch.3,v 1.7 2000/02/25 07:53:09 deraadt Exp $ 26.\" $OpenBSD: tsearch.3,v 1.8 2000/04/20 13:50:03 aaron Exp $
27.\" 27.\"
28.Dd June 15, 1997 28.Dd June 15, 1997
29.Dt TSEARCH 3 29.Dt TSEARCH 3
@@ -49,7 +49,8 @@ The
49and 49and
50.Fn twalk 50.Fn twalk
51functions manage binary search trees based on algorithms T and D 51functions manage binary search trees based on algorithms T and D
52from Knuth (6.2.2). The comparison function passed in by 52from Knuth (6.2.2).
53The comparison function passed in by
53the user has the same style of return values as 54the user has the same style of return values as
54.Xr strcmp 3 . 55.Xr strcmp 3 .
55.Pp 56.Pp
@@ -67,7 +68,8 @@ is identical to
67.Fn tfind 68.Fn tfind
68except that if no match is found, 69except that if no match is found,
69.Fa key 70.Fa key
70is inserted into the tree and a pointer to it is returned. If 71is inserted into the tree and a pointer to it is returned.
72If
71.Fa rootp 73.Fa rootp
72points to a null value a new binary search tree is created. 74points to a null value a new binary search tree is created.
73.Pp 75.Pp